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

Function fsconfig_set_fd

src/backend/linux_raw/mount/syscalls.rs:143–158  ·  view source on GitHub ↗
(
    fs_fd: BorrowedFd<'_>,
    key: &CStr,
    fd: BorrowedFd<'_>,
)

Source from the content-addressed store, hash-verified

141
142#[inline]
143pub(crate) fn fsconfig_set_fd(
144 fs_fd: BorrowedFd<'_>,
145 key: &CStr,
146 fd: BorrowedFd<'_>,
147) -> io::Result<()> {
148 unsafe {
149 ret(syscall_readonly!(
150 __NR_fsconfig,
151 fs_fd,
152 super::types::FsConfigCmd::SetFd,
153 key,
154 zero(),
155 fd
156 ))
157 }
158}
159
160#[inline]
161pub(crate) fn fsconfig_set_path(

Callers

nothing calls this directly

Calls 1

retFunction · 0.50

Tested by

no test coverage detected