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

Function procctl

src/process/procctl.rs:52–59  ·  view source on GitHub ↗
(
    option: c_int,
    process: ProcSelector,
    data: *mut c_void,
)

Source from the content-addressed store, hash-verified

50
51#[inline]
52pub(crate) unsafe fn procctl(
53 option: c_int,
54 process: ProcSelector,
55 data: *mut c_void,
56) -> io::Result<()> {
57 let (idtype, id) = proc_selector_to_raw(process);
58 syscalls::procctl(idtype as c_uint, id as RawId, option, data)
59}
60
61#[inline]
62pub(crate) unsafe fn procctl_set<P>(

Callers 6

procctl_setFunction · 0.70
procctl_get_optionalFunction · 0.70
set_dumpable_behaviorFunction · 0.70
set_reaper_statusFunction · 0.70
get_reaper_pidsFunction · 0.70
reaper_killFunction · 0.70

Calls 1

proc_selector_to_rawFunction · 0.85

Tested by

no test coverage detected