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

Function mount

src/backend/linux_raw/mount/syscalls.rs:15–32  ·  view source on GitHub ↗
(
    source: Option<&CStr>,
    target: &CStr,
    file_system_type: Option<&CStr>,
    flags: super::types::MountFlagsArg,
    data: Option<&CStr>,
)

Source from the content-addressed store, hash-verified

13
14#[inline]
15pub(crate) fn mount(
16 source: Option<&CStr>,
17 target: &CStr,
18 file_system_type: Option<&CStr>,
19 flags: super::types::MountFlagsArg,
20 data: Option<&CStr>,
21) -> io::Result<()> {
22 unsafe {
23 ret(syscall_readonly!(
24 __NR_mount,
25 source,
26 target,
27 file_system_type,
28 flags,
29 data
30 ))
31 }
32}
33
34#[inline]
35pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> {

Callers

nothing calls this directly

Calls 1

retFunction · 0.50

Tested by

no test coverage detected