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

Function setns

src/backend/linux_raw/thread/syscalls.rs:370–372  ·  view source on GitHub ↗
(fd: BorrowedFd<'_>, nstype: c::c_int)

Source from the content-addressed store, hash-verified

368
369#[inline]
370pub(crate) fn setns(fd: BorrowedFd<'_>, nstype: c::c_int) -> io::Result<c::c_int> {
371 unsafe { ret_c_int(syscall_readonly!(__NR_setns, fd, c_int(nstype))) }
372}
373
374#[inline]
375pub(crate) unsafe fn unshare(flags: crate::thread::UnshareFlags) -> io::Result<()> {

Callers

nothing calls this directly

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected