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

Function prctl_get_at_arg2_optional

src/prctl.rs:57–61  ·  view source on GitHub ↗
(option: i32)

Source from the content-addressed store, hash-verified

55
56#[inline]
57pub(crate) unsafe fn prctl_get_at_arg2_optional<P>(option: i32) -> io::Result<P> {
58 let mut value: MaybeUninit<P> = MaybeUninit::uninit();
59 prctl_2args(option, value.as_mut_ptr().cast())?;
60 Ok(value.assume_init())
61}
62
63#[inline]
64pub(crate) unsafe fn prctl_get_at_arg2<P, T>(option: i32) -> io::Result<T>

Callers

nothing calls this directly

Calls 3

prctl_2argsFunction · 0.85
assume_initMethod · 0.80
as_mut_ptrMethod · 0.45

Tested by

no test coverage detected