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

Function open_tree

src/mount/fsopen.rs:75–82  ·  view source on GitHub ↗
(
    dfd: Fd,
    filename: Path,
    flags: OpenTreeFlags,
)

Source from the content-addressed store, hash-verified

73/// [Unfinished draft]: https://github.com/sunfishcode/linux-mount-api-documentation/blob/main/open_tree.md
74#[inline]
75pub fn open_tree<Path: path::Arg, Fd: AsFd>(
76 dfd: Fd,
77 filename: Path,
78 flags: OpenTreeFlags,
79) -> io::Result<OwnedFd> {
80 let dfd = dfd.as_fd();
81 filename.into_with_c_str(|filename| backend::mount::syscalls::open_tree(dfd, filename, flags))
82}
83
84/// `fspick(dfd, path, flags)`
85///

Callers

nothing calls this directly

Calls 2

into_with_c_strMethod · 0.80
as_fdMethod · 0.45

Tested by

no test coverage detected