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

Function move_mount

src/backend/linux_raw/mount/syscalls.rs:54–71  ·  view source on GitHub ↗
(
    from_dfd: BorrowedFd<'_>,
    from_pathname: &CStr,
    to_dfd: BorrowedFd<'_>,
    to_pathname: &CStr,
    flags: super::types::MoveMountFlags,
)

Source from the content-addressed store, hash-verified

52
53#[inline]
54pub(crate) fn move_mount(
55 from_dfd: BorrowedFd<'_>,
56 from_pathname: &CStr,
57 to_dfd: BorrowedFd<'_>,
58 to_pathname: &CStr,
59 flags: super::types::MoveMountFlags,
60) -> io::Result<()> {
61 unsafe {
62 ret(syscall_readonly!(
63 __NR_move_mount,
64 from_dfd,
65 from_pathname,
66 to_dfd,
67 to_pathname,
68 flags
69 ))
70 }
71}
72
73#[inline]
74pub(crate) fn open_tree(

Callers

nothing calls this directly

Calls 1

retFunction · 0.50

Tested by

no test coverage detected