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

Function prctl_get_at_arg2

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

Source from the content-addressed store, hash-verified

62
63#[inline]
64pub(crate) unsafe fn prctl_get_at_arg2<P, T>(option: i32) -> io::Result<T>
65where
66 P: Default,
67 T: TryFrom<P, Error = io::Errno>,
68{
69 let mut value: P = Default::default();
70 prctl_2args(option, as_mut_ptr(&mut value).cast())?;
71 TryFrom::try_from(value)
72}

Callers

nothing calls this directly

Calls 2

prctl_2argsFunction · 0.85
as_mut_ptrFunction · 0.85

Tested by

no test coverage detected