Home
last modified time | relevance | path

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

123

/Linux-v6.6/include/linux/
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()
59 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope()
69 static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns) in pidns_memfd_noexec_scope()
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);
78 extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd);
[all …]
Dpid.h56 struct pid_namespace *ns;
113 struct pid_namespace;
114 extern struct pid_namespace init_pid_ns;
128 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
135 extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
137 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
140 extern void disable_pid_allocation(struct pid_namespace *ns);
152 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid()
154 struct pid_namespace *ns = NULL; in ns_of_pid()
190 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns, in bacct_add_tsk()
Dacct.h23 struct pid_namespace;
26 extern void acct_exit_ns(struct pid_namespace *);
Dnsproxy.h11 struct pid_namespace;
36 struct pid_namespace *pid_ns_for_children;
Dproc_fs.h62 struct pid_namespace *pid_ns;
157 int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns,
239 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns()
Dsched.h58 struct pid_namespace;
1572 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
1579 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
1610 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pgrp_nr_ns()
1621 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_session_nr_ns()
1631 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_tgid_nr_ns()
1641 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns) in task_ppid_nr_ns()
1983 extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns);
Dseccomp.h130 int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
Dproc_ns.h10 struct pid_namespace;
Dresctrl.h12 struct pid_namespace *ns,
Dcpuset.h112 extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
Dfs_context.h23 struct pid_namespace;
/Linux-v6.6/kernel/
Dpid_namespace.c72 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace()
73 struct pid_namespace *parent_pid_ns) in create_pid_namespace()
75 struct pid_namespace *ns; in create_pid_namespace()
129 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns()
137 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
145 struct pid_namespace *copy_pid_ns(unsigned long flags, in copy_pid_ns()
146 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns()
155 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns()
157 struct pid_namespace *parent; in put_pid_ns()
169 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes()
[all …]
Dpid.c75 struct pid_namespace init_pid_ns = {
110 struct pid_namespace *ns; in put_pid()
138 struct pid_namespace *ns = upid->ns; in free_pid()
162 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid, in alloc_pid()
168 struct pid_namespace *tmp; in alloc_pid()
305 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
312 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns()
416 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns()
475 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns()
496 struct pid_namespace *ns) in __task_pid_nr_ns()
[all …]
Dacct.c110 struct pid_namespace *ns;
163 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get()
216 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
316 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns()
524 struct pid_namespace *ns = acct->ns; in do_acct_process()
593 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process()
610 struct pid_namespace *ns; in acct_process()
Dpid_sysctl.h11 struct pid_namespace *ns = task_active_pid_ns(current); in pid_mfd_noexec_dointvec_minmax()
Dtsacct.c21 struct pid_namespace *pid_ns, in bacct_add_tsk()
/Linux-v6.6/fs/proc/
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 *,
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()
662 int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tid_stat()
668 int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns, in proc_tgid_stat()
674 int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns, in proc_pid_statm()
Dbase.c386 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan()
428 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack()
476 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat()
550 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score()
596 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits()
640 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall()
768 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_single_show()
1442 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in sched_show()
2448 struct pid_namespace *ns;
3023 static int proc_tid_io_accounting(struct seq_file *m, struct pid_namespace *ns, in proc_tid_io_accounting()
[all …]
Dself.c15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_self_get_link()
Dthread_self.c15 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_thread_self_get_link()
/Linux-v6.6/include/linux/sched/
Ddebug.h10 struct pid_namespace;
41 struct pid_namespace *ns, struct seq_file *m);
/Linux-v6.6/ipc/
Dutil.h55 struct pid_namespace;
117 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
/Linux-v6.6/security/tomoyo/
Drealpath.c165 struct pid_namespace *proc_pidns = proc_pid_ns(sb); in tomoyo_get_local_path()

123