Home
last modified time | relevance | path

Searched refs:PidNamespace (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/rust/kernel/
H A Dpid_namespace.rs22 pub struct PidNamespace { struct
26 impl PidNamespace { argument
47 unsafe impl AlwaysRefCounted for PidNamespace { implementation
55 unsafe fn dec_ref(obj: ptr::NonNull<PidNamespace>) { in dec_ref() argument
64 unsafe impl Send for PidNamespace {} implementation
68 unsafe impl Sync for PidNamespace {} implementation
H A Dtask.rs10 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() argument
305 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()