Home
last modified time | relevance | path

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

123

/linux-6.15/include/linux/
H A Dpid_namespace.h26 struct pid_namespace { struct
34 struct pid_namespace *parent; argument
52 extern struct pid_namespace init_pid_ns; argument
57 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns()
82 struct user_namespace *user_ns, struct pid_namespace *ns);
85 extern void put_pid_ns(struct pid_namespace *ns);
90 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns) in get_pid_ns()
101 struct user_namespace *user_ns, struct pid_namespace *ns) in copy_pid_ns()
108 static inline void put_pid_ns(struct pid_namespace *ns) in put_pid_ns()
126 int register_pidns_sysctls(struct pid_namespace *pidns);
[all …]
H A Dpid.h52 struct pid_namespace *ns;
120 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
127 extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
129 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 Dnsproxy.h12 struct pid_namespace;
37 struct pid_namespace *pid_ns_for_children;
50 struct pid_namespace *: &(__ns->ns), \
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 Dseccomp.h110 struct pid_namespace;
113 int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
H A Dproc_fs.h65 struct pid_namespace *pid_ns;
161 int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns,
243 static inline struct pid_namespace *proc_pid_ns(struct super_block *sb) in proc_pid_ns()
H A Dproc_ns.h10 struct pid_namespace;
/linux-6.15/kernel/
H A Dpid_namespace.c76 struct pid_namespace *parent_pid_ns) in create_pid_namespace()
78 struct pid_namespace *ns; in create_pid_namespace()
142 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns()
162 struct pid_namespace *ns = in destroy_pid_namespace_work()
163 container_of(work, struct pid_namespace, work); in destroy_pid_namespace_work()
166 struct pid_namespace *parent; in destroy_pid_namespace_work()
184 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns()
349 return container_of(ns, struct pid_namespace, ns); in to_pid_ns()
354 struct pid_namespace *ns; in pidns_get()
367 struct pid_namespace *ns = NULL; in pidns_for_children_get()
[all …]
H A Dpid.c73 struct pid_namespace init_pid_ns = {
96 struct pid_namespace *ns; in put_pid()
124 struct pid_namespace *ns = upid->ns; in free_pid()
167 struct pid_namespace *tmp; in alloc_pid()
309 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
514 struct pid_namespace *ns) in __task_pid_nr_ns()
683 struct pid_namespace *pidns = in pid_table_root_permissions()
684 container_of(head->set, struct pid_namespace, set); in pid_table_root_permissions()
700 struct pid_namespace *pidns = in pid_table_root_set_ownership()
701 container_of(head->set, struct pid_namespace, set); in pid_table_root_set_ownership()
[all …]
H A Dacct.c110 struct pid_namespace *ns;
164 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get()
224 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on()
338 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns()
534 struct pid_namespace *ns = acct->ns; in fill_ac()
626 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process()
643 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-6.15/rust/helpers/
H A Dpid_namespace.c6 struct pid_namespace *rust_helper_get_pid_ns(struct pid_namespace *ns) in rust_helper_get_pid_ns()
11 void rust_helper_put_pid_ns(struct pid_namespace *ns) in rust_helper_put_pid_ns()
17 struct pid_namespace *rust_helper_task_get_pid_ns(struct task_struct *task) in rust_helper_task_get_pid_ns()
19 struct pid_namespace *pid_ns; in rust_helper_task_get_pid_ns()
H A Dtask.c53 struct pid_namespace *ns) in rust_helper_task_tgid_nr_ns()
/linux-6.15/rust/kernel/
H A Dpid_namespace.rs23 inner: Opaque<bindings::pid_namespace>,
29 pub fn as_ptr(&self) -> *mut bindings::pid_namespace { in as_ptr() argument
39 pub unsafe fn from_ptr<'a>(ptr: *const bindings::pid_namespace) -> &'a Self { in from_ptr()
/linux-6.15/include/linux/sched/
H A Ddebug.h10 struct pid_namespace;
40 struct pid_namespace *ns, struct seq_file *m);
/linux-6.15/fs/proc/
H A Dinternal.h108 struct pid_namespace *ns, struct pid *pid,
241 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *,
243 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *,
245 extern int proc_pid_status(struct seq_file *, struct pid_namespace *,
247 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.c421 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan()
463 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack()
585 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score()
803 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_single_show()
1498 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in sched_show()
2499 struct pid_namespace *ns;
3507 struct pid_namespace *ns; in proc_pid_lookup()
3575 struct pid_namespace *ns = proc_pid_ns(file_inode(file)->i_sb); in proc_pid_readdir()
3811 struct pid_namespace *ns; in proc_task_lookup()
3855 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-6.15/ipc/
H A Dutil.h56 struct pid_namespace;
118 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
/linux-6.15/fs/
H A Dnsfs.c184 struct pid_namespace *pid_ns; in ns_ioctl()
236 pid_ns = container_of(ns, struct pid_namespace, ns); in ns_ioctl()
H A Dpidfs.c179 struct pid_namespace *ns; in pidfd_show_fdinfo()
235 const struct pid_namespace *ns = task_active_pid_ns(current); in pid_in_current_pidns()
388 struct pid_namespace *pid_ns; in pidfd_ioctl()

123