Home
last modified time | relevance | path

Searched refs:pid_namespace (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v5.4/include/linux/
Dpid_namespace.h24 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 …]
Dpid.h56 struct pid_namespace *ns;
102 struct pid_namespace;
103 extern struct pid_namespace init_pid_ns;
114 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
121 extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
123 extern struct pid *alloc_pid(struct pid_namespace *ns);
125 extern void disable_pid_allocation(struct pid_namespace *ns);
137 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid()
139 struct pid_namespace *ns = NULL; in ns_of_pid()
175 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
Dproc_ns.h10 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()
Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns, in bacct_add_tsk()
Dnsproxy.h11 struct pid_namespace;
36 struct pid_namespace *pid_ns_for_children;
Dacct.h23 struct pid_namespace;
27 extern void acct_exit_ns(struct pid_namespace *);
Dsched.h49 struct pid_namespace;
1302 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
1309 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
1340 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns()
1351 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns()
1361 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns()
1371 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
1665 extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns);
Dproc_fs.h83 int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns,
147 static inline struct pid_namespace *proc_pid_ns(const struct inode *inode) in proc_pid_ns()
Dcpuset.h101 extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
Dfs_context.h23 struct pid_namespace;
Dptrace.h187 struct pid_namespace *ns; in ptrace_event_pid()
/Linux-v5.4/kernel/
Dpid_namespace.c64 struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work); in proc_cleanup_work()
78 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace()
79 struct pid_namespace *parent_pid_ns) in create_pid_namespace()
81 struct pid_namespace *ns; in create_pid_namespace()
134 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns()
142 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
150 struct pid_namespace *copy_pid_ns(unsigned long flags, in copy_pid_ns()
151 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns()
162 struct pid_namespace *ns; in free_pid_ns()
164 ns = container_of(kref, struct pid_namespace, kref); in free_pid_ns()
[all …]
Dpid.c73 struct pid_namespace init_pid_ns = {
105 struct pid_namespace *ns; in put_pid()
133 struct pid_namespace *ns = upid->ns; in free_pid()
160 struct pid *alloc_pid(struct pid_namespace *ns) in alloc_pid()
165 struct pid_namespace *tmp; in alloc_pid()
254 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
261 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns()
346 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns()
405 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns()
426 struct pid_namespace *ns) in __task_pid_nr_ns()
[all …]
Dacct.c91 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()
Dtsacct.c21 struct pid_namespace *pid_ns, in bacct_add_tsk()
Dreboot.c313 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4()
/Linux-v5.4/fs/proc/
Droot.c33 struct pid_namespace *pid_ns;
87 struct pid_namespace *pid_ns, in proc_apply_options()
100 struct pid_namespace *pid_ns = get_pid_ns(s->s_fs_info); in proc_fill_super()
148 struct pid_namespace *pid = sb->s_fs_info; in proc_reconfigure()
196 struct pid_namespace *ns; in proc_kill_sb()
198 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb()
301 int pid_ns_prepare_proc(struct pid_namespace *ns) in pid_ns_prepare_proc()
332 void pid_ns_release_proc(struct pid_namespace *ns) in pid_ns_release_proc()
Dinternal.h79 struct pid_namespace *ns, struct pid *pid,
143 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *,
145 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *,
147 extern int proc_pid_status(struct seq_file *, struct pid_namespace *,
149 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
Dself.c15 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()
Dthread_self.c15 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()
Darray.c152 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state()
404 int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, in proc_pid_status()
430 static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, in do_task_stat()
623 int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tid_stat()
629 int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tgid_stat()
635 int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, in proc_pid_statm()
Dbase.c383 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan()
425 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack()
473 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat()
547 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score()
584 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits()
628 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall()
698 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions()
712 struct pid_namespace *pid = proc_pid_ns(inode); in proc_pid_permission()
747 struct pid_namespace *ns = proc_pid_ns(inode); in proc_single_show()
1416 struct pid_namespace *ns = proc_pid_ns(inode); in sched_show()
[all …]
/Linux-v5.4/include/linux/sched/
Ddebug.h10 struct pid_namespace;
40 struct pid_namespace *ns, struct seq_file *m);
/Linux-v5.4/ipc/
Dutil.h55 struct pid_namespace;
119 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
Dutil.c741 struct pid_namespace *pid_ns;
745 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *s) in ipc_seq_pid_ns()

12