Searched refs:PidNamespace (Results 1 – 2 of 2) sorted by relevance
22 pub struct PidNamespace { struct26 impl PidNamespace { argument47 unsafe impl AlwaysRefCounted for PidNamespace { implementation55 unsafe fn dec_ref(obj: ptr::NonNull<PidNamespace>) { in dec_ref() argument64 unsafe impl Send for PidNamespace {} implementation68 unsafe impl Sync for PidNamespace {} implementation
10 pid_namespace::PidNamespace,171 pub unsafe fn current_pid_ns() -> impl Deref<Target = PidNamespace> { in current_pid_ns()173 task: &'a PidNamespace, in current_pid_ns()178 type Target = PidNamespace; in current_pid_ns()247 task: unsafe { PidNamespace::from_ptr(pidns) }, in current_pid_ns()296 pub fn get_pid_ns(&self) -> Option<ARef<PidNamespace>> { in get_pid_ns() argument305 Some(unsafe { ARef::from_raw(ptr::NonNull::new_unchecked(ptr.cast::<PidNamespace>())) }) in get_pid_ns()311 pub fn tgid_nr_ns(&self, pidns: Option<&PidNamespace>) -> Pid { in tgid_nr_ns()