Function
fsconfig_set_binary
(
fs_fd: BorrowedFd<'_>,
key: &CStr,
value: &[u8],
)
Source from the content-addressed store, hash-verified
| 122 | |
| 123 | #[inline] |
| 124 | pub(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] |
| 143 | pub(crate) fn fsconfig_set_fd( |
Callers
nothing calls this directly
Tested by
no test coverage detected