(
fs_fd: BorrowedFd<'_>,
key: &CStr,
value: &[u8],
)
| 161 | |
| 162 | #[cfg(linux_kernel)] |
| 163 | pub(crate) fn fsconfig_set_binary( |
| 164 | fs_fd: BorrowedFd<'_>, |
| 165 | key: &CStr, |
| 166 | value: &[u8], |
| 167 | ) -> io::Result<()> { |
| 168 | unsafe { |
| 169 | ret(fsconfig( |
| 170 | borrowed_fd(fs_fd), |
| 171 | super::types::FsConfigCmd::SetBinary as _, |
| 172 | c_str(key), |
| 173 | value.as_ptr().cast(), |
| 174 | value.len().try_into().map_err(|_| io::Errno::OVERFLOW)?, |
| 175 | )) |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | #[cfg(linux_kernel)] |
| 180 | pub(crate) fn fsconfig_set_fd( |
nothing calls this directly
no test coverage detected