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

Function fsconfig_set_string

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

Source from the content-addressed store, hash-verified

144
145#[cfg(linux_kernel)]
146pub(crate) fn fsconfig_set_string(
147 fs_fd: BorrowedFd<'_>,
148 key: &CStr,
149 value: &CStr,
150) -> io::Result<()> {
151 unsafe {
152 ret(fsconfig(
153 borrowed_fd(fs_fd),
154 super::types::FsConfigCmd::SetString as _,
155 c_str(key),
156 c_str(value),
157 0,
158 ))
159 }
160}
161
162#[cfg(linux_kernel)]
163pub(crate) fn fsconfig_set_binary(

Callers

nothing calls this directly

Calls 3

borrowed_fdFunction · 0.85
c_strFunction · 0.85
retFunction · 0.50

Tested by

no test coverage detected