Function
mount
(
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] |
| 15 | pub(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] |
| 35 | pub(crate) fn unmount(target: &CStr, flags: super::types::UnmountFlags) -> io::Result<()> { |
Callers
nothing calls this directly
Tested by
no test coverage detected