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

Function unmount

src/backend/linux_raw/mount/syscalls.rs:35–37  ·  view source on GitHub ↗
(target: &CStr, flags: super::types::UnmountFlags)

Source from the content-addressed store, hash-verified

33
34#[inline]
35pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> {
36 unsafe { ret(syscall_readonly!(__NR_umount2, target, flags)) }
37}
38
39#[inline]
40pub(crate) fn fsopen(fs_name: &CStr, flags: super::types::FsOpenFlags) -> io::Result<OwnedFd> {

Callers

nothing calls this directly

Calls 1

retFunction · 0.50

Tested by

no test coverage detected