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

Function fsconfig_set_string

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

Source from the content-addressed store, hash-verified

104
105#[inline]
106pub(crate) fn fsconfig_set_string(
107 fs_fd: BorrowedFd<'_>,
108 key: &CStr,
109 value: &CStr,
110) -> io::Result<()> {
111 unsafe {
112 ret(syscall_readonly!(
113 __NR_fsconfig,
114 fs_fd,
115 super::types::FsConfigCmd::SetString,
116 key,
117 value,
118 zero()
119 ))
120 }
121}
122
123#[inline]
124pub(crate) fn fsconfig_set_binary(

Callers

nothing calls this directly

Calls 1

retFunction · 0.50

Tested by

no test coverage detected