Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dpid_namespace.h24 struct pid_namespace { struct
33 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.h53 struct pid_namespace *ns;
98 struct pid_namespace;
99 extern struct pid_namespace init_pid_ns;
110 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
117 extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
118 int next_pidmap(struct pid_namespace *pid_ns, unsigned int last);
120 extern struct pid *alloc_pid(struct pid_namespace *ns);
122 extern void disable_pid_allocation(struct pid_namespace *ns);
134 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid()
136 struct pid_namespace *ns = NULL; in ns_of_pid()
[all …]
Dproc_ns.h9 struct pid_namespace;
41 extern int pid_ns_prepare_proc(struct pid_namespace *ns);
42 extern void pid_ns_release_proc(struct pid_namespace *ns);
48 static inline int pid_ns_prepare_proc(struct pid_namespace *ns) { return 0; } in pid_ns_prepare_proc()
49 static inline void pid_ns_release_proc(struct pid_namespace *ns) {} in pid_ns_release_proc()
Dtsacct_kern.h14 struct pid_namespace *pid_ns,
18 struct pid_namespace *pid_ns, in bacct_add_tsk()
Dnsproxy.h10 struct pid_namespace;
34 struct pid_namespace *pid_ns_for_children;
Dacct.h25 struct pid_namespace;
29 extern void acct_exit_ns(struct pid_namespace *);
Dsched.h1897 struct pid_namespace;
1913 struct pid_namespace *ns);
1921 struct pid_namespace *ns) in task_pid_nr_ns()
1937 pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns);
1946 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
1964 struct pid_namespace *ns) in task_pgrp_nr_ns()
1976 struct pid_namespace *ns) in task_session_nr_ns()
2424 extern struct pid_namespace init_pid_ns;
2439 struct pid_namespace *ns);
Dcpuset.h76 extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
Dptrace.h175 struct pid_namespace *ns; in ptrace_event_pid()
Dcgroup.h95 int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns,
Dperf_event.h565 struct pid_namespace *ns;
/linux-4.4.14/kernel/
Dpid_namespace.c75 struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work); in proc_cleanup_work()
82 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace()
83 struct pid_namespace *parent_pid_ns) in create_pid_namespace()
85 struct pid_namespace *ns; in create_pid_namespace()
139 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()
153 struct pid_namespace *copy_pid_ns(unsigned long flags, in copy_pid_ns()
154 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns()
165 struct pid_namespace *ns; in free_pid_ns()
167 ns = container_of(kref, struct pid_namespace, kref); in free_pid_ns()
[all …]
Dpid.c55 static inline int mk_pid(struct pid_namespace *pid_ns, in mk_pid()
70 struct pid_namespace init_pid_ns = {
144 static void set_last_pid(struct pid_namespace *pid_ns, int base, int pid) in set_last_pid()
154 static int alloc_pidmap(struct pid_namespace *pid_ns) in alloc_pidmap()
216 int next_pidmap(struct pid_namespace *pid_ns, unsigned int last) in next_pidmap()
239 struct pid_namespace *ns; in put_pid()
268 struct pid_namespace *ns = upid->ns; in free_pid()
297 struct pid *alloc_pid(struct pid_namespace *ns) in alloc_pid()
302 struct pid_namespace *tmp; in alloc_pid()
359 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
[all …]
Dacct.c88 struct pid_namespace *ns;
141 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get()
194 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
294 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns()
501 struct pid_namespace *ns = acct->ns; in do_acct_process()
570 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process()
589 struct pid_namespace *ns; in acct_process()
Dtsacct.c30 struct pid_namespace *pid_ns, in bacct_add_tsk()
Dreboot.c283 struct pid_namespace *pid_ns = task_active_pid_ns(current); in SYSCALL_DEFINE4()
DMakefile63 obj-$(CONFIG_PID_NS) += pid_namespace.o
Dtaskstats.c170 struct pid_namespace *pid_ns, in fill_stats()
Dexit.c457 struct pid_namespace *pid_ns = task_active_pid_ns(father); in find_child_reaper()
Dcgroup.c4125 struct { enum cgroup_filetype type; struct pid_namespace *ns; } key;
4277 struct pid_namespace *ns = task_active_pid_ns(current); in cgroup_pidlist_find()
5417 int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns, in proc_cgroup_show()
Dcpuset.c2700 int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns, in proc_cpuset_show()
/linux-4.4.14/fs/proc/
Droot.c35 struct pid_namespace *ns = (struct pid_namespace *)data; in proc_set_super()
51 static int proc_parse_options(char *options, struct pid_namespace *pid) in proc_parse_options()
94 struct pid_namespace *pid = sb->s_fs_info; in proc_remount()
105 struct pid_namespace *ns; in proc_mount()
109 ns = (struct pid_namespace *)data; in proc_mount()
153 struct pid_namespace *ns; in proc_kill_sb()
155 ns = (struct pid_namespace *)sb->s_fs_info; in proc_kill_sb()
264 int pid_ns_prepare_proc(struct pid_namespace *ns) in pid_ns_prepare_proc()
276 void pid_ns_release_proc(struct pid_namespace *ns) in pid_ns_release_proc()
Dinternal.h57 struct pid_namespace *ns, struct pid *pid,
150 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *,
152 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *,
154 extern int proc_pid_status(struct seq_file *, struct pid_namespace *,
156 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
Dself.c12 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_readlink()
23 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_self_follow_link()
48 struct pid_namespace *ns = s->s_fs_info; in proc_setup_self()
Dthread_self.c12 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_readlink()
24 struct pid_namespace *ns = dentry->d_sb->s_fs_info; in proc_thread_self_follow_link()
49 struct pid_namespace *ns = s->s_fs_info; in proc_setup_thread_self()
Darray.c142 static inline void task_state(struct seq_file *m, struct pid_namespace *ns, in task_state()
354 int proc_pid_status(struct seq_file *m, struct pid_namespace *ns, in proc_pid_status()
375 static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, in do_task_stat()
555 int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tid_stat()
561 int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tgid_stat()
567 int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, in proc_pid_statm()
Dbase.c403 static int proc_pid_auxv(struct seq_file *m, struct pid_namespace *ns, in proc_pid_auxv()
425 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan()
464 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack()
501 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat()
576 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score()
617 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits()
659 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall()
728 static bool has_pid_permissions(struct pid_namespace *pid, in has_pid_permissions()
742 struct pid_namespace *pid = inode->i_sb->s_fs_info; in proc_pid_permission()
777 struct pid_namespace *ns; in proc_single_show()
[all …]
Dinode.c105 struct pid_namespace *pid = sb->s_fs_info; in proc_show_options()
/linux-4.4.14/arch/tile/include/asm/
Dhardwall.h26 int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_st…
/linux-4.4.14/arch/tile/kernel/
Dhardwall.c945 int proc_pid_hardwall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_hardwall()
/linux-4.4.14/net/ipv6/
Dip6_flowlabel.c696 struct pid_namespace *pid_ns;