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

Function negative_pid

src/backend/linux_raw/conv.rs:700–702  ·  view source on GitHub ↗
(pid: Pid)

Source from the content-addressed store, hash-verified

698#[cfg(feature = "process")]
699#[inline]
700pub(super) fn negative_pid<'a, Num: ArgNumber>(pid: Pid) -> ArgReg<'a, Num> {
701 pass_usize(pid.as_raw_nonzero().get().wrapping_neg() as usize)
702}
703
704#[cfg(any(feature = "process", feature = "runtime"))]
705impl<'a, Num: ArgNumber> From<Signal> for ArgReg<'a, Num> {

Callers

nothing calls this directly

Calls 3

pass_usizeFunction · 0.85
getMethod · 0.45
as_raw_nonzeroMethod · 0.45

Tested by

no test coverage detected