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

Function set_auxiliary_vector

src/process/prctl.rs:707–716  ·  view source on GitHub ↗
(auxv: &[*const c_void])

Source from the content-addressed store, hash-verified

705#[doc(alias = "PR_SET_MM")]
706#[doc(alias = "PR_SET_MM_AUXV")]
707pub unsafe fn set_auxiliary_vector(auxv: &[*const c_void]) -> io::Result<()> {
708 syscalls::prctl(
709 PR_SET_MM,
710 PR_SET_MM_AUXV as *mut _,
711 auxv.as_ptr() as *mut _,
712 auxv.len() as *mut _,
713 null_mut(),
714 )
715 .map(|_r| ())
716}
717
718/// Get the size of the [`PrctlMmMap`] the kernel expects.
719///

Callers

nothing calls this directly

Calls 3

prctlFunction · 0.50
as_ptrMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected