/linux/include/linux/ |
H A D | pid_namespace.h | 26 struct pid_namespace { struct 34 struct pid_namespace *parent; argument 52 extern struct pid_namespace init_pid_ns; argument 57 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 65 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 75 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope() 81 extern struct pid_namespace *copy_pid_ns(unsigned long flags, 82 struct user_namespace *user_ns, struct pid_namespace *ns); 83 extern void zap_pid_ns_processes(struct pid_namespace *pid_n [all...] |
H A D | pid.h | 45 * find_pid_ns() using the int nr and struct pid_namespace *ns. 54 struct pid_namespace *ns; 124 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 131 extern struct pid *find_ge_pid(int nr, struct pid_namespace *); 133 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, 137 extern void disable_pid_allocation(struct pid_namespace *ns); 149 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid() 151 struct pid_namespace *ns = NULL; in ns_of_pid() 187 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns); 232 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *n [all...] |
H A D | nsproxy.h | 12 struct pid_namespace; 37 struct pid_namespace *pid_ns_for_children; 50 struct pid_namespace *: &(__ns->ns), \
|
H A D | pid_types.h | 13 struct pid_namespace; 14 extern struct pid_namespace init_pid_ns;
|
H A D | tsacct_kern.h | 15 struct pid_namespace *pid_ns, 19 struct pid_namespace *pid_ns, in bacct_add_tsk()
|
H A D | acct.h | 23 struct pid_namespace; 26 extern void acct_exit_ns(struct pid_namespace *);
|
H A D | seccomp.h | 110 struct pid_namespace; 113 int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
|
H A D | proc_fs.h | 68 struct pid_namespace *pid_ns; 164 int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns, 246 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns()
|
H A D | cpuset.h | 116 extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
|
/linux/rust/helpers/ |
H A D | pid_namespace.c | 3 #include <linux/pid_namespace.h> 6 struct pid_namespace *rust_helper_get_pid_ns(struct pid_namespace *ns) in rust_helper_get_pid_ns() 11 void rust_helper_put_pid_ns(struct pid_namespace *ns) in rust_helper_put_pid_ns() 17 struct pid_namespace *rust_helper_task_get_pid_ns(struct task_struct *task) in rust_helper_task_get_pid_ns() 19 struct pid_namespace *pid_ns; in rust_helper_task_get_pid_ns()
|
H A D | task.c | 59 struct pid_namespace *ns) in rust_helper_task_tgid_nr_ns()
|
/linux/kernel/ |
H A D | pid.c | 36 #include <linux/pid_namespace.h> 73 struct pid_namespace init_pid_ns = { 96 struct pid_namespace *ns; in put_pid() 125 struct pid_namespace *ns = upid->ns; in free_pid() 162 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, in alloc_pid() 168 struct pid_namespace *tmp; in alloc_pid() 310 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation() 317 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns() 430 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns() 489 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *n [all...] |
H A D | acct.c | 63 #include <linux/pid_namespace.h> 110 struct pid_namespace *ns; 164 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get() 224 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() 338 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns() 534 struct pid_namespace *ns = acct->ns; in fill_ac() 626 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process() 643 struct pid_namespace *ns; in acct_process()
|
H A D | pid_sysctl.h | 5 #include <linux/pid_namespace.h> 11 struct pid_namespace *ns = task_active_pid_ns(current); in pid_mfd_noexec_dointvec_minmax()
|
/linux/rust/kernel/ |
H A D | pid_namespace.rs | 7 //! C header: [`include/linux/pid_namespace.h`](srctree/include/linux/pid_namespace.h) and 16 /// Wraps the kernel's `struct pid_namespace`. Thread safe. 18 /// This structure represents the Rust abstraction for a C `struct pid_namespace`. This 19 /// implementation abstracts the usage of an already existing C `struct pid_namespace` within Rust 23 inner: Opaque<bindings::pid_namespace>, 29 pub fn as_ptr(&self) -> *mut bindings::pid_namespace { in as_ptr() argument 39 pub unsafe fn from_ptr<'a>(ptr: *const bindings::pid_namespace) -> &'a Self { in from_ptr()
|
H A D | task.rs | 11 pid_namespace::PidNamespace, 256 // CAST: `Self` is a `repr(transparent)` wrapper around `bindings::pid_namespace`. in get_pid_ns()
|
/linux/include/linux/sched/ |
H A D | debug.h | 10 struct pid_namespace; 40 struct pid_namespace *ns, struct seq_file *m);
|
/linux/fs/proc/ |
H A D | internal.h | 112 struct pid_namespace *ns, struct pid *pid, 245 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *, 247 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *, 249 extern int proc_pid_status(struct seq_file *, struct pid_namespace *, 251 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
|
H A D | array.c | 87 #include <linux/pid_namespace.h> 148 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() 439 int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, in proc_pid_status() 467 static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, in do_task_stat() 671 int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tid_stat() 677 int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tgid_stat() 683 int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, in proc_pid_statm()
|
H A D | base.c | 85 #include <linux/pid_namespace.h> 421 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() 463 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() 511 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() 585 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() 631 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() 675 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() 803 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_single_show() 1504 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in sched_show() 2505 struct pid_namespace *n [all...] |
H A D | self.c | 5 #include <linux/pid_namespace.h> 15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_self_get_link()
|
H A D | thread_self.c | 5 #include <linux/pid_namespace.h> 15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_thread_self_get_link()
|
/linux/ipc/ |
H A D | util.h | 56 struct pid_namespace; 118 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
|
/linux/fs/ |
H A D | nsfs.c | 11 #include <linux/pid_namespace.h> 184 struct pid_namespace *pid_ns; in ns_ioctl() 236 pid_ns = container_of(ns, struct pid_namespace, ns); in ns_ioctl()
|
H A D | pidfs.c | 11 #include <linux/pid_namespace.h> 216 struct pid_namespace *ns; in pidfd_show_fdinfo() 272 const struct pid_namespace *ns = task_active_pid_ns(current); in pid_in_current_pidns() 454 struct pid_namespace *pid_ns; in pidfd_ioctl()
|