MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / membarrier_query

Function membarrier_query

src/backend/linux_raw/thread/syscalls.rs:521–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

519
520#[inline]
521pub(crate) fn membarrier_query() -> MembarrierQuery {
522 unsafe {
523 match ret_c_uint(syscall!(
524 __NR_membarrier,
525 c_int(membarrier_cmd::MEMBARRIER_CMD_QUERY as _),
526 c_uint(0)
527 )) {
528 Ok(query) => MembarrierQuery::from_bits_retain(query),
529 Err(_) => MembarrierQuery::empty(),
530 }
531 }
532}
533
534#[inline]
535pub(crate) fn membarrier(cmd: MembarrierCommand) -> io::Result<()> {

Callers

nothing calls this directly

Calls 1

ret_c_uintFunction · 0.85

Tested by

no test coverage detected