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

Function proc_selector_to_raw

src/process/procctl.rs:44–49  ·  view source on GitHub ↗
(selector: ProcSelector)

Source from the content-addressed store, hash-verified

42/// `pgid`.
43pub type ProcSelector = Option<(IdType, Pid)>;
44fn proc_selector_to_raw(selector: ProcSelector) -> (IdType, RawPid) {
45 match selector {
46 Some((idtype, id)) => (idtype, id.as_raw_nonzero().get()),
47 None => (IdType::Pid, 0),
48 }
49}
50
51#[inline]
52pub(crate) unsafe fn procctl(

Callers 1

procctlFunction · 0.85

Calls 2

getMethod · 0.45
as_raw_nonzeroMethod · 0.45

Tested by

no test coverage detected