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

Function mount_bind

src/mount/mount_unmount.rs:83–98  ·  view source on GitHub ↗
(
    source: Source,
    target: Target,
)

Source from the content-addressed store, hash-verified

81#[doc(alias = "mount")]
82#[doc(alias = "MS_BIND")]
83pub fn mount_bind<Source: path::Arg, Target: path::Arg>(
84 source: Source,
85 target: Target,
86) -> io::Result<()> {
87 source.into_with_c_str(|source| {
88 target.into_with_c_str(|target| {
89 backend::mount::syscalls::mount(
90 Some(source),
91 target,
92 None,
93 MountFlagsArg(MountFlags::BIND.bits()),
94 None,
95 )
96 })
97 })
98}
99
100/// `mount(source, target, NULL, MS_BIND | MS_REC, NULL)`
101///

Callers

nothing calls this directly

Calls 3

into_with_c_strMethod · 0.80
mountFunction · 0.70
MountFlagsArgClass · 0.50

Tested by

no test coverage detected