Lines Matching defs:membarrier
1 //! The Linux `membarrier` syscall.
55 /// `membarrier(MEMBARRIER_CMD_QUERY, 0, 0)`—Query the supported `membarrier`
59 /// the underlying OS doesn't support the `membarrier` syscall, it returns
65 /// [Linux]: https://man7.org/linux/man-pages/man2/membarrier.2.html
72 /// `membarrier(cmd, 0, 0)`—Perform a memory barrier.
77 /// [Linux]: https://man7.org/linux/man-pages/man2/membarrier.2.html
79 pub fn membarrier(cmd: MembarrierCommand) -> io::Result<()> {
80 backend::process::syscalls::membarrier(cmd)
83 /// `membarrier(cmd, MEMBARRIER_CMD_FLAG_CPU, cpu)`—Perform a memory barrier
89 /// [Linux]: https://man7.org/linux/man-pages/man2/membarrier.2.html