/Linux-v4.19/include/linux/ |
D | pid_namespace.h | 24 struct pid_namespace { struct 32 struct pid_namespace *parent; argument 50 extern struct pid_namespace init_pid_ns; argument 55 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() 62 extern struct pid_namespace *copy_pid_ns(unsigned long flags, 63 struct user_namespace *user_ns, struct pid_namespace *ns); 64 extern void zap_pid_ns_processes(struct pid_namespace *pid_ns); 65 extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd); 66 extern void put_pid_ns(struct pid_namespace *ns); 71 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns() [all …]
|
D | pid.h | 54 struct pid_namespace *ns; 92 struct pid_namespace; 93 extern struct pid_namespace init_pid_ns; 104 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns); 111 extern struct pid *find_ge_pid(int nr, struct pid_namespace *); 112 int next_pidmap(struct pid_namespace *pid_ns, unsigned int last); 114 extern struct pid *alloc_pid(struct pid_namespace *ns); 116 extern void disable_pid_allocation(struct pid_namespace *ns); 128 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid() 130 struct pid_namespace *ns = NULL; in ns_of_pid() [all …]
|
D | proc_ns.h | 10 struct pid_namespace; 50 extern int pid_ns_prepare_proc(struct pid_namespace *ns); 51 extern void pid_ns_release_proc(struct pid_namespace *ns); 57 static inline int pid_ns_prepare_proc(struct pid_namespace *ns) { return 0; } in pid_ns_prepare_proc() 58 static inline void pid_ns_release_proc(struct pid_namespace *ns) {} in pid_ns_release_proc()
|
D | tsacct_kern.h | 15 struct pid_namespace *pid_ns, 19 struct pid_namespace *pid_ns, in bacct_add_tsk()
|
D | nsproxy.h | 11 struct pid_namespace; 36 struct pid_namespace *pid_ns_for_children;
|
D | acct.h | 23 struct pid_namespace; 27 extern void acct_exit_ns(struct pid_namespace *);
|
D | sched.h | 45 struct pid_namespace; 1228 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns); 1235 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns() 1266 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns() 1277 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns() 1287 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns() 1297 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns() 1579 extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns);
|
D | cpuset.h | 99 extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
|
D | ptrace.h | 180 struct pid_namespace *ns; in ptrace_event_pid()
|
D | proc_fs.h | 132 static inline struct pid_namespace *proc_pid_ns(const struct inode *inode) in proc_pid_ns()
|
/Linux-v4.19/kernel/ |
D | pid_namespace.c | 63 struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work); in proc_cleanup_work() 77 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace() 78 struct pid_namespace *parent_pid_ns) in create_pid_namespace() 80 struct pid_namespace *ns; in create_pid_namespace() 133 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() 141 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace() 149 struct pid_namespace *copy_pid_ns(unsigned long flags, in copy_pid_ns() 150 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns() 161 struct pid_namespace *ns; in free_pid_ns() 163 ns = container_of(kref, struct pid_namespace, kref); in free_pid_ns() [all …]
|
D | pid.c | 71 struct pid_namespace init_pid_ns = { 103 struct pid_namespace *ns; in put_pid() 132 struct pid_namespace *ns = upid->ns; in free_pid() 159 struct pid *alloc_pid(struct pid_namespace *ns) in alloc_pid() 164 struct pid_namespace *tmp; in alloc_pid() 249 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation() 256 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns() 341 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns() 400 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns() 421 struct pid_namespace *ns) in __task_pid_nr_ns() [all …]
|
D | acct.c | 91 struct pid_namespace *ns; 144 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get() 197 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() 297 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns() 504 struct pid_namespace *ns = acct->ns; in do_acct_process() 574 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process() 593 struct pid_namespace *ns; in acct_process()
|
D | tsacct.c | 32 struct pid_namespace *pid_ns, in bacct_add_tsk()
|
/Linux-v4.19/fs/proc/ |
D | root.c | 39 int proc_parse_options(char *options, struct pid_namespace *pid) in proc_parse_options() 83 struct pid_namespace *pid = sb->s_fs_info; in proc_remount() 92 struct pid_namespace *ns; in proc_mount() 106 struct pid_namespace *ns; in proc_kill_sb() 108 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb() 210 int pid_ns_prepare_proc(struct pid_namespace *ns) in pid_ns_prepare_proc() 222 void pid_ns_release_proc(struct pid_namespace *ns) in pid_ns_release_proc()
|
D | internal.h | 82 struct pid_namespace *ns, struct pid *pid, 145 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *, 147 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *, 149 extern int proc_pid_status(struct seq_file *, struct pid_namespace *, 151 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *, 272 extern int proc_parse_options(char *options, struct pid_namespace *pid);
|
D | self.c | 15 struct pid_namespace *ns = proc_pid_ns(inode); in proc_self_get_link() 39 struct pid_namespace *ns = proc_pid_ns(root_inode); in proc_setup_self()
|
D | thread_self.c | 15 struct pid_namespace *ns = proc_pid_ns(inode); in proc_thread_self_get_link() 39 struct pid_namespace *ns = proc_pid_ns(root_inode); in proc_setup_thread_self()
|
D | base.c | 361 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan() 403 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack() 455 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat() 530 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score() 568 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits() 610 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall() 679 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions() 693 struct pid_namespace *pid = proc_pid_ns(inode); in proc_pid_permission() 728 struct pid_namespace *ns = proc_pid_ns(inode); in proc_single_show() 1401 struct pid_namespace *ns = proc_pid_ns(inode); in sched_show() [all …]
|
D | array.c | 152 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state() 395 int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, in proc_pid_status() 420 static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, in do_task_stat() 613 int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tid_stat() 619 int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tgid_stat() 625 int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, in proc_pid_statm()
|
D | inode.c | 117 struct pid_namespace *pid = sb->s_fs_info; in proc_show_options() 496 struct pid_namespace *ns = get_pid_ns(s->s_fs_info); in proc_fill_super()
|
/Linux-v4.19/include/linux/sched/ |
D | debug.h | 10 struct pid_namespace; 40 struct pid_namespace *ns, struct seq_file *m);
|
/Linux-v4.19/ipc/ |
D | util.h | 26 struct pid_namespace; 90 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
|
/Linux-v4.19/include/rdma/ |
D | restrack.h | 137 struct pid_namespace *ns);
|
/Linux-v4.19/drivers/infiniband/core/ |
D | restrack.c | 77 struct pid_namespace *ns) in rdma_restrack_count()
|