(selector: ProcSelector)
| 42 | /// `pgid`. |
| 43 | pub type ProcSelector = Option<(IdType, Pid)>; |
| 44 | fn 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] |
| 52 | pub(crate) unsafe fn procctl( |
no test coverage detected