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

Function fsconfig_set_path_empty

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

Source from the content-addressed store, hash-verified

213
214#[cfg(linux_kernel)]
215pub(crate) fn fsconfig_set_path_empty(
216 fs_fd: BorrowedFd<'_>,
217 key: &CStr,
218 fd: BorrowedFd<'_>,
219) -> io::Result<()> {
220 unsafe {
221 ret(fsconfig(
222 borrowed_fd(fs_fd),
223 super::types::FsConfigCmd::SetPathEmpty as _,
224 c_str(key),
225 c_str(cstr!("")),
226 borrowed_fd(fd),
227 ))
228 }
229}
230
231#[cfg(linux_kernel)]
232pub(crate) fn fsconfig_create(fs_fd: BorrowedFd<'_>) -> io::Result<()> {

Callers

nothing calls this directly

Calls 3

borrowed_fdFunction · 0.85
c_strFunction · 0.85
retFunction · 0.50

Tested by

no test coverage detected