Home
last modified time | relevance | path

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

123

/linux/include/linux/
H A Dpid_namespace.h26 struct pid_namespace { struct
33 struct pid_namespace *parent; argument
46 extern struct pid_namespace init_pid_ns; argument
51 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns()
75 extern struct pid_namespace *copy_pid_ns(unsigned long flags,
76 struct user_namespace *user_ns, struct pid_namespace *ns);
77 extern void zap_pid_ns_processes(struct pid_namespace *pid_ns);
79 extern void put_pid_ns(struct pid_namespace *ns);
84 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns()
95 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns()
[all …]
H A Dpid.h52 struct pid_namespace *ns;
121 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
128 extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
130 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
133 extern void disable_pid_allocation(struct pid_namespace *ns);
145 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid()
147 struct pid_namespace *ns = NULL; in ns_of_pid()
183 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
235 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
266 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns()
[all …]
H A Dpid_types.h13 struct pid_namespace;
14 extern struct pid_namespace init_pid_ns;
H A Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns, in bacct_add_tsk()
H A Dacct.h23 struct pid_namespace;
26 extern void acct_exit_ns(struct pid_namespace *);
H A Dnsproxy.h12 struct pid_namespace;
37 struct pid_namespace *pid_ns_for_children;
H A Dseccomp.h109 struct pid_namespace;
112 int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
H A Dproc_fs.h62 struct pid_namespace *pid_ns;
158 int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns,
240 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns()
H A Dproc_ns.h10 struct pid_namespace;
H A Dresctrl.h18 struct pid_namespace *ns,
H A Dcpuset.h112 extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
H A Dfs_context.h23 struct pid_namespace;
/linux/kernel/
H A Dpid_namespace.c13 #include <linux/pid_namespace.h>
73 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace()
74 struct pid_namespace *parent_pid_ns) in create_pid_namespace()
76 struct pid_namespace *ns; in create_pid_namespace()
130 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns()
138 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
146 struct pid_namespace *copy_pid_ns(unsigned long flags, in copy_pid_ns()
147 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns()
156 void put_pid_ns(struct pid_namespace *n
[all...]
H A Dpid.c79 struct pid_namespace init_pid_ns = {
114 struct pid_namespace *ns; in put_pid()
142 struct pid_namespace *ns = upid->ns; in free_pid()
166 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, in alloc_pid()
172 struct pid_namespace *tmp; in alloc_pid()
311 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
318 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns()
485 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns()
506 struct pid_namespace *ns) in __task_pid_nr_ns()
520 struct pid_namespace *task_active_pid_ns(struct task_struct *tsk) in task_active_pid_ns()
[all …]
H A Dacct.c109 struct pid_namespace *ns;
162 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get()
215 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
315 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns()
523 struct pid_namespace *ns = acct->ns; in do_acct_process()
592 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process()
609 struct pid_namespace *ns; in acct_process()
H A Dpid_sysctl.h11 struct pid_namespace *ns = task_active_pid_ns(current); in pid_mfd_noexec_dointvec_minmax()
/linux/fs/proc/
H A Dinternal.h93 struct pid_namespace *ns, struct pid *pid,
152 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *,
154 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *,
156 extern int proc_pid_status(struct seq_file *, struct pid_namespace *,
158 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
H A Darray.c148 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 Dbase.c387 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan()
429 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack()
551 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score()
769 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_single_show()
1441 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in sched_show()
2443 struct pid_namespace *ns;
3448 struct pid_namespace *ns; in proc_pid_lookup()
3516 struct pid_namespace *ns = proc_pid_ns(file_inode(file)->i_sb); in proc_pid_readdir()
3754 struct pid_namespace *ns; in proc_task_lookup()
3798 struct pid_namespace *ns) in first_tid()
[all …]
H A Dself.c15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_self_get_link()
H A Dthread_self.c15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_thread_self_get_link()
/linux/include/linux/sched/
H A Ddebug.h10 struct pid_namespace;
41 struct pid_namespace *ns, struct seq_file *m);
/linux/ipc/
H A Dutil.h56 struct pid_namespace;
118 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
/linux/security/tomoyo/
H A Drealpath.c165 struct pid_namespace *proc_pidns = proc_pid_ns(sb); in tomoyo_get_local_path()
/linux/fs/
H A Dpidfs.c58 struct pid_namespace *ns; in pidfd_show_fdinfo()

123