Home
last modified time | relevance | path

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

12

/linux/kernel/
H A Dpid_namespace.c76 static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns, in create_pid_namespace()
77 struct pid_namespace *parent_pid_ns) in create_pid_namespace()
79 struct pid_namespace *ns; in create_pid_namespace()
142 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns()
150 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
163 struct pid_namespace *ns = in destroy_pid_namespace_work()
164 container_of(work, struct pid_namespace, work); in destroy_pid_namespace_work()
167 struct pid_namespace *parent; in destroy_pid_namespace_work()
175 struct pid_namespace *copy_pid_ns(u64 flags, in copy_pid_ns()
176 struct user_namespace *user_ns, struct pid_namespace *old_ns) in copy_pid_ns()
[all …]
H A Dpid.c72 struct pid_namespace init_pid_ns = {
90 struct pid_namespace *ns; in put_pid()
113 struct pid_namespace *active_ns; in free_pid()
123 struct pid_namespace *ns = upid->ns; in free_pid()
159 struct pid *alloc_pid(struct pid_namespace *ns, pid_t *arg_set_tid, in alloc_pid()
167 struct pid_namespace *tmp; in alloc_pid()
363 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
370 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns()
483 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns()
542 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns()
[all …]
H A DMakefile93 obj-$(CONFIG_PID_NS) += pid_namespace.o
/linux/include/linux/
H A Dpid.h58 struct pid_namespace *ns;
177 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
184 extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
186 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
190 extern void disable_pid_allocation(struct pid_namespace *ns);
202 static inline struct pid_namespace *ns_of_pid(struct pid *pid) in ns_of_pid()
204 struct pid_namespace *ns = NULL; in ns_of_pid()
240 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
294 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
301 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) in task_pid_nr_ns()
[all …]
H A Dpid_types.h21 struct pid_namespace;
22 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 Dproc_ns.h11 struct pid_namespace;
H A Dnsfs.h32 struct pid_namespace *: task_active_pid_ns(current), \
H A Dfs_context.h23 struct pid_namespace;
H A Dresctrl.h24 struct pid_namespace *ns,
/linux/include/linux/ns/
H A Dns_common_types.h17 struct pid_namespace;
27 extern struct pid_namespace init_pid_ns;
136 struct pid_namespace *: &(__ns)->ns, \
137 const struct pid_namespace *: &(__ns)->ns, \
151 struct pid_namespace *: PID_NS_INIT_INO, \
162 struct pid_namespace *: &init_pid_ns, \
173 struct pid_namespace *: PID_NS_INIT_ID, \
184 struct pid_namespace *: (IS_ENABLED(CONFIG_PID_NS) ? &pidns_operations : NULL), \
204 X(pid_namespace, CLONE_NEWPID) \
/linux/rust/kernel/
H A Dpid_namespace.rs20 inner: Opaque<bindings::pid_namespace>,
26 pub fn as_ptr(&self) -> *mut bindings::pid_namespace { in as_ptr() argument
36 pub unsafe fn from_ptr<'a>(ptr: *const bindings::pid_namespace) -> &'a Self { in from_ptr()
H A Dtask.rs10 pid_namespace::PidNamespace,
244 // CAST: `Self` is a `repr(transparent)` wrapper around `bindings::pid_namespace`. in get_pid_ns()
H A Dlib.rs117 pub mod pid_namespace;
106 pub mod pid_namespace; global() module
/linux/fs/proc/
H A Dinternal.h115 struct pid_namespace *ns, struct pid *pid,
248 extern int proc_tid_stat(struct seq_file *, struct pid_namespace *,
250 extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *,
252 extern int proc_pid_status(struct seq_file *, struct pid_namespace *,
254 extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
H A Dbase.c85 #include <linux/pid_namespace.h>
413 static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, in proc_pid_wchan()
461 static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns, in proc_pid_stack()
509 static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns, in proc_pid_schedstat()
583 static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns, in proc_oom_score()
630 static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns, in proc_pid_limits()
674 static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns, in proc_pid_syscall()
785 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in proc_single_show()
1486 struct pid_namespace *ns = proc_pid_ns(inode->i_sb); in sched_show()
2479 struct pid_namespace *n
[all...]
H A Droot.c30 struct pid_namespace *pid_ns;
120 struct pid_namespace *target, *active = task_active_pid_ns(current); in proc_parse_pidns_param()
148 target = container_of(ns, struct pid_namespace, ns); in proc_parse_pidns_param()
/linux/ipc/
H A Dutil.h56 struct pid_namespace;
118 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
H A Dutil.c772 struct pid_namespace *pid_ns;
776 struct pid_namespace *ipc_seq_pid_ns(struct seq_file *s) in ipc_seq_pid_ns()
/linux/rust/helpers/
H A Dtask.c54 struct pid_namespace *ns) in rust_helper_current_user_ns()
/linux/fs/
H A Dpidfs.c275 struct pid_namespace *ns; in pidfd_show_fdinfo()
331 const struct pid_namespace *ns = task_active_pid_ns(current); in pid_in_current_pidns()
658 struct pid_namespace *pid_ns; in pidfd_ioctl()
H A Dnsfs.c217 struct pid_namespace *pid_ns; in ns_ioctl()
259 pid_ns = container_of(ns, struct pid_namespace, ns); in ns_ioctl()
/linux/security/tomoyo/
H A Drealpath.c165 struct pid_namespace *proc_pidns = proc_pid_ns(sb); in tomoyo_get_local_path()

12