(
fs_fd: BorrowedFd<'_>,
key: &CStr,
value: &CStr,
)
| 144 | |
| 145 | #[cfg(linux_kernel)] |
| 146 | pub(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)] |
| 163 | pub(crate) fn fsconfig_set_binary( |
nothing calls this directly
no test coverage detected