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

Function pivot_root

src/process/pivot_root.rs:14–18  ·  view source on GitHub ↗
(new_root: P, put_old: Q)

Source from the content-addressed store, hash-verified

12#[cfg_attr(docsrs, doc(cfg(feature = "fs")))]
13#[inline]
14pub fn pivot_root<P: path::Arg, Q: path::Arg>(new_root: P, put_old: Q) -> io::Result<()> {
15 new_root.into_with_c_str(|new_root| {
16 put_old.into_with_c_str(|put_old| backend::process::syscalls::pivot_root(new_root, put_old))
17 })
18}

Callers 1

mainFunction · 0.50

Calls 1

into_with_c_strMethod · 0.80

Tested by

no test coverage detected