(
header: &mut linux_raw_sys::general::__user_cap_header_struct,
data: &[linux_raw_sys::general::__user_cap_data_struct],
)
| 372 | #[cfg(linux_kernel)] |
| 373 | #[inline] |
| 374 | pub(crate) fn capset( |
| 375 | header: &mut linux_raw_sys::general::__user_cap_header_struct, |
| 376 | data: &[linux_raw_sys::general::__user_cap_data_struct], |
| 377 | ) -> io::Result<()> { |
| 378 | syscall! { |
| 379 | fn capset( |
| 380 | hdrp: *mut linux_raw_sys::general::__user_cap_header_struct, |
| 381 | data: *const linux_raw_sys::general::__user_cap_data_struct |
| 382 | ) via SYS_capset -> c::c_int |
| 383 | } |
| 384 | |
| 385 | unsafe { ret(capset(as_mut_ptr(header), data.as_ptr())) } |
| 386 | } |
| 387 | |
| 388 | #[cfg(linux_kernel)] |
| 389 | #[inline] |
nothing calls this directly
no test coverage detected