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

Function open_tree

src/backend/linux_raw/mount/syscalls.rs:74–80  ·  view source on GitHub ↗
(
    dfd: BorrowedFd<'_>,
    filename: &CStr,
    flags: super::types::OpenTreeFlags,
)

Source from the content-addressed store, hash-verified

72
73#[inline]
74pub(crate) fn open_tree(
75 dfd: BorrowedFd<'_>,
76 filename: &CStr,
77 flags: super::types::OpenTreeFlags,
78) -> io::Result<OwnedFd> {
79 unsafe { ret_owned_fd(syscall_readonly!(__NR_open_tree, dfd, filename, flags)) }
80}
81
82#[inline]
83pub(crate) fn fspick(

Callers

nothing calls this directly

Calls 1

ret_owned_fdFunction · 0.50

Tested by

no test coverage detected