| /linux/kernel/ |
| H A D | pid_namespace.c | 76 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace() 77 struct pid_namespace *parent_pid_ns) in create_pid_namespace() 79 struct pid_namespace *ns; in create_pid_namespace() 142 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() 150 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace() 163 struct pid_namespace *ns = in destroy_pid_namespace_work() 164 container_of(work, struct pid_namespace, work); in destroy_pid_namespace_work() 167 struct pid_namespace *parent; in destroy_pid_namespace_work() 175 struct pid_namespace *copy_pid_ns(u64 flags, in copy_pid_ns() 176 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns() [all …]
|
| H A D | pid.c | 72 struct pid_namespace init_pid_ns = { 90 struct pid_namespace *ns; in put_pid() 113 struct pid_namespace *active_ns; in free_pid() 123 struct pid_namespace *ns = upid->ns; in free_pid() 159 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *arg_set_tid, in alloc_pid() 167 struct pid_namespace *tmp; in alloc_pid() 363 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation() 370 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns() 483 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns() 542 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns() [all …]
|
| H A D | Makefile | 93 obj-$(CONFIG_PID_NS) += pid_namespace.o
|
| /linux/include/linux/ |
| H A D | pid.h | 58 struct pid_namespace *ns; 177 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 184 extern struct pid *find_ge_pid(int nr, struct pid_namespace *); 186 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, 190 extern void disable_pid_allocation(struct pid_namespace *ns); 202 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid() 204 struct pid_namespace *ns = NULL; in ns_of_pid() 240 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns); 294 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns); 301 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() [all …]
|
| H A D | pid_types.h | 21 struct pid_namespace; 22 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 | nsproxy.h | 12 struct pid_namespace; 37 struct pid_namespace *pid_ns_for_children;
|
| H A D | proc_ns.h | 11 struct pid_namespace;
|
| H A D | nsfs.h | 32 struct pid_namespace *: task_active_pid_ns(current), \
|
| H A D | fs_context.h | 23 struct pid_namespace;
|
| H A D | resctrl.h | 24 struct pid_namespace *ns,
|
| /linux/include/linux/ns/ |
| H A D | ns_common_types.h | 17 struct pid_namespace; 27 extern struct pid_namespace init_pid_ns; 136 struct pid_namespace *: &(__ns)->ns, \ 137 const struct pid_namespace *: &(__ns)->ns, \ 151 struct pid_namespace *: PID_NS_INIT_INO, \ 162 struct pid_namespace *: &init_pid_ns, \ 173 struct pid_namespace *: PID_NS_INIT_ID, \ 184 struct pid_namespace *: (IS_ENABLED(CONFIG_PID_NS) ? &pidns_operations : NULL), \ 204 X(pid_namespace, CLONE_NEWPID) \
|
| /linux/rust/kernel/ |
| H A D | pid_namespace.rs | 20 inner: Opaque<bindings::pid_namespace>, 26 pub fn as_ptr(&self) -> *mut bindings::pid_namespace { in as_ptr() argument 36 pub unsafe fn from_ptr<'a>(ptr: *const bindings::pid_namespace) -> &'a Self { in from_ptr()
|
| H A D | task.rs | 10 pid_namespace::PidNamespace, 244 // CAST: `Self` is a `repr(transparent)` wrapper around `bindings::pid_namespace`. in get_pid_ns()
|
| H A D | lib.rs | 117 pub mod pid_namespace; 106 pub mod pid_namespace; global() module
|
| /linux/fs/proc/ |
| H A D | internal.h | 115 struct pid_namespace *ns, struct pid *pid, 248 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *, 250 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *, 252 extern int proc_pid_status(struct seq_file *, struct pid_namespace *, 254 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
|
| H A D | base.c | 85 #include <linux/pid_namespace.h> 413 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() 461 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() 509 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() 583 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() 630 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() 674 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() 785 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_single_show() 1486 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in sched_show() 2479 struct pid_namespace *n [all...] |
| H A D | root.c | 30 struct pid_namespace *pid_ns; 120 struct pid_namespace *target, *active = task_active_pid_ns(current); in proc_parse_pidns_param() 148 target = container_of(ns, struct pid_namespace, ns); in proc_parse_pidns_param()
|
| /linux/ipc/ |
| H A D | util.h | 56 struct pid_namespace; 118 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
|
| H A D | util.c | 772 struct pid_namespace *pid_ns; 776 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *s) in ipc_seq_pid_ns()
|
| /linux/rust/helpers/ |
| H A D | task.c | 54 struct pid_namespace *ns) in rust_helper_current_user_ns()
|
| /linux/fs/ |
| H A D | pidfs.c | 275 struct pid_namespace *ns; in pidfd_show_fdinfo() 331 const struct pid_namespace *ns = task_active_pid_ns(current); in pid_in_current_pidns() 658 struct pid_namespace *pid_ns; in pidfd_ioctl()
|
| H A D | nsfs.c | 217 struct pid_namespace *pid_ns; in ns_ioctl() 259 pid_ns = container_of(ns, struct pid_namespace, ns); in ns_ioctl()
|
| /linux/security/tomoyo/ |
| H A D | realpath.c | 165 struct pid_namespace *proc_pidns = proc_pid_ns(sb); in tomoyo_get_local_path()
|