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

Function fsconfig_set_binary

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

Source from the content-addressed store, hash-verified

122
123#[inline]
124pub(crate) fn fsconfig_set_binary(
125 fs_fd: BorrowedFd<'_>,
126 key: &CStr,
127 value: &[u8],
128) -> io::Result<()> {
129 let (value_addr, value_len) = slice(value);
130 unsafe {
131 ret(syscall_readonly!(
132 __NR_fsconfig,
133 fs_fd,
134 super::types::FsConfigCmd::SetBinary,
135 key,
136 value_addr,
137 value_len
138 ))
139 }
140}
141
142#[inline]
143pub(crate) fn fsconfig_set_fd(

Callers

nothing calls this directly

Calls 2

sliceFunction · 0.85
retFunction · 0.50

Tested by

no test coverage detected