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

Function capset

src/backend/libc/thread/syscalls.rs:374–386  ·  view source on GitHub ↗
(
    header: &mut linux_raw_sys::general::__user_cap_header_struct,
    data: &[linux_raw_sys::general::__user_cap_data_struct],
)

Source from the content-addressed store, hash-verified

372#[cfg(linux_kernel)]
373#[inline]
374pub(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]

Callers

nothing calls this directly

Calls 3

as_mut_ptrFunction · 0.85
retFunction · 0.50
as_ptrMethod · 0.45

Tested by

no test coverage detected