pid_namespace
int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *pid_ns;
struct pid_namespace *ns = task_active_pid_ns(current);
static pid_t locks_translate_pid(struct file_lock_core *fl, struct pid_namespace *ns)
struct pid_namespace *proc_pidns = proc_pid_ns(file_inode(f->file)->i_sb);
struct pid_namespace *proc_pidns = proc_pid_ns(file_inode(f->file)->i_sb);
struct pid_namespace *pid_ns;
pid_ns = container_of(ns, struct pid_namespace, ns);
struct pid_namespace *ns;
const struct pid_namespace *ns = task_active_pid_ns(current);
struct pid_namespace *pid_ns;
static inline void task_state(struct seq_file *m, struct pid_namespace *ns,
int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
int proc_tid_stat(struct seq_file *m, struct pid_namespace *ns,
int proc_tgid_stat(struct seq_file *m, struct pid_namespace *ns,
int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *ns = proc_pid_ns(inode->i_sb);
struct pid_namespace *ns;
static int proc_tid_io_accounting(struct seq_file *m, struct pid_namespace *ns,
static int proc_tgid_io_accounting(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_personality(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_patch_state(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_ksm_merging_pages(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_ksm_stat(struct seq_file *m, struct pid_namespace *ns,
static int proc_stack_depth(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *ns;
static struct tgid_iter next_tgid(struct pid_namespace *ns, struct tgid_iter iter)
struct pid_namespace *ns = proc_pid_ns(file_inode(file)->i_sb);
struct pid_namespace *ns;
struct pid_namespace *ns)
struct pid_namespace *ns;
static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_stack(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_schedstat(struct seq_file *m, struct pid_namespace *ns,
static int proc_oom_score(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_limits(struct seq_file *m, struct pid_namespace *ns,
static int proc_pid_syscall(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *ns = proc_pid_ns(inode->i_sb);
struct pid_namespace *ns, struct pid *pid,
extern int proc_tid_stat(struct seq_file *, struct pid_namespace *,
extern int proc_tgid_stat(struct seq_file *, struct pid_namespace *,
extern int proc_pid_status(struct seq_file *, struct pid_namespace *,
extern int proc_pid_statm(struct seq_file *, struct pid_namespace *,
struct pid_namespace *target, *active = task_active_pid_ns(current);
target = container_of(ns, struct pid_namespace, ns);
struct pid_namespace *pid_ns;
struct pid_namespace *ns = proc_pid_ns(inode->i_sb);
struct pid_namespace *ns = proc_pid_ns(inode->i_sb);
int proc_resctrl_show(struct seq_file *s, struct pid_namespace *ns,
struct pid_namespace;
extern void acct_exit_ns(struct pid_namespace *);
int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns,
extern int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace;
struct pid_namespace *: &(__ns)->ns, \
const struct pid_namespace *: &(__ns)->ns, \
struct pid_namespace *: PID_NS_INIT_INO, \
struct pid_namespace;
struct pid_namespace *: &init_pid_ns, \
struct pid_namespace *: PID_NS_INIT_ID, \
struct pid_namespace *: (IS_ENABLED(CONFIG_PID_NS) ? &pidns_operations : NULL), \
struct pid_namespace *: CLONE_NEWPID, \
extern struct pid_namespace init_pid_ns;
struct pid_namespace *: task_active_pid_ns(current), \
struct pid_namespace;
struct pid_namespace *pid_ns_for_children;
struct pid_namespace *: &(pid_ns_tree), \
struct pid_namespace *ns;
extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
extern void disable_pid_allocation(struct pid_namespace *ns);
static inline struct pid_namespace *ns_of_pid(struct pid *pid)
struct pid_namespace *ns = NULL;
pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns)
struct pid_namespace *ns;
static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns)
static inline struct pid_namespace *copy_pid_ns(u64 flags,
struct user_namespace *user_ns, struct pid_namespace *ns)
static inline void put_pid_ns(struct pid_namespace *ns)
static inline void zap_pid_ns_processes(struct pid_namespace *ns)
static inline int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd)
static inline bool pidns_is_ancestor(struct pid_namespace *child,
struct pid_namespace *ancestor)
extern struct pid_namespace *task_active_pid_ns(struct task_struct *tsk);
int register_pidns_sysctls(struct pid_namespace *pidns);
void unregister_pidns_sysctls(struct pid_namespace *pidns);
struct pid_namespace *parent;
extern struct pid_namespace init_pid_ns;
static inline struct pid_namespace *to_pid_ns(struct ns_common *ns)
return container_of(ns, struct pid_namespace, ns);
static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)
static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns)
static inline int pidns_memfd_noexec_scope(struct pid_namespace *ns)
extern struct pid_namespace *copy_pid_ns(u64 flags,
struct user_namespace *user_ns, struct pid_namespace *ns);
extern void zap_pid_ns_processes(struct pid_namespace *pid_ns);
extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd);
extern void put_pid_ns(struct pid_namespace *ns);
extern bool pidns_is_ancestor(struct pid_namespace *child,
struct pid_namespace *ancestor);
static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)
struct pid_namespace;
extern struct pid_namespace init_pid_ns;
int proc_pid_arch_status(struct seq_file *m, struct pid_namespace *ns,
static inline struct pid_namespace *proc_pid_ns(struct super_block *sb)
struct pid_namespace *pid_ns;
struct pid_namespace;
struct pid_namespace *ns;
struct pid_namespace *ns,
extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns);
struct pid_namespace;
struct pid_namespace;
struct pid_namespace *ns, struct seq_file *m);
struct pid_namespace;
int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *pid_ns,
struct pid_namespace *pid_ns,
struct pid_namespace *pid_ns = ipc_seq_pid_ns(s);
struct pid_namespace *pid_ns = ipc_seq_pid_ns(s);
struct pid_namespace *pid_ns;
struct pid_namespace *ipc_seq_pid_ns(struct seq_file *s)
struct pid_namespace *ipc_seq_pid_ns(struct seq_file *);
struct pid_namespace;
struct pid_namespace *ns;
static struct bsd_acct_struct *acct_get(struct pid_namespace *ns)
struct pid_namespace *ns = task_active_pid_ns(current);
void acct_exit_ns(struct pid_namespace *ns)
struct pid_namespace *ns = acct->ns;
static void slow_acct_process(struct pid_namespace *ns)
struct pid_namespace *ns;
struct pid_namespace *pidns;
struct pid_namespace *ns;
struct { enum cgroup_filetype type; struct pid_namespace *ns; } key;
struct pid_namespace *ns = task_active_pid_ns(current);
int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns,
int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *pid_ns = task_active_pid_ns(father);
struct pid_namespace *pid_ns = NULL;
struct pid_namespace *active_ns;
struct pid_namespace *ns = upid->ns;
struct pid *alloc_pid(struct pid_namespace *ns, pid_t *arg_set_tid,
struct pid_namespace *tmp;
void disable_pid_allocation(struct pid_namespace *ns)
struct pid *find_pid_ns(int nr, struct pid_namespace *ns)
struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)
pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns)
struct pid_namespace *ns)
struct pid_namespace *task_active_pid_ns(struct task_struct *tsk)
struct pid *find_ge_pid(int nr, struct pid_namespace *ns)
struct pid_namespace init_pid_ns = {
struct pid_namespace *pidns =
container_of(head->set, struct pid_namespace, set);
struct pid_namespace *pidns =
container_of(head->set, struct pid_namespace, set);
int register_pidns_sysctls(struct pid_namespace *pidns)
void unregister_pidns_sysctls(struct pid_namespace *pidns)
struct pid_namespace *ns;
struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu);
static void destroy_pid_namespace(struct pid_namespace *ns)
struct pid_namespace *ns =
container_of(work, struct pid_namespace, work);
struct pid_namespace *parent;
struct pid_namespace *copy_pid_ns(u64 flags,
struct user_namespace *user_ns, struct pid_namespace *old_ns)
void put_pid_ns(struct pid_namespace *ns)
void zap_pid_ns_processes(struct pid_namespace *pid_ns)
struct pid_namespace *pid_ns = task_active_pid_ns(current);
int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd)
struct pid_namespace *ns;
struct pid_namespace *ns = NULL;
bool pidns_is_ancestor(struct pid_namespace *child,
struct pid_namespace *ancestor)
struct pid_namespace *ns;
struct pid_namespace *active = task_active_pid_ns(current);
struct pid_namespace *new = to_pid_ns(ns);
struct pid_namespace *active = task_active_pid_ns(current);
struct pid_namespace *pid_ns, *p;
pid_ns_cachep = KMEM_CACHE(pid_namespace, SLAB_PANIC | SLAB_ACCOUNT);
static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns,
struct pid_namespace *parent_pid_ns)
struct pid_namespace *ns;
struct pid_namespace *ns = task_active_pid_ns(current);
struct pid_namespace *pid_ns = task_active_pid_ns(current);
void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
int proc_pid_seccomp_cache(struct seq_file *m, struct pid_namespace *ns,
struct pid_namespace *active = task_active_pid_ns(current);
struct pid_namespace *p = ns_of_pid(pid);
struct pid_namespace *pid_ns,
struct pid_namespace *pid_ns,
struct pid_namespace *ns = task_active_pid_ns(current);
struct pid_namespace *pid_ns;
__rust_helper void rust_helper_put_pid_ns(struct pid_namespace *ns)
__rust_helper struct pid_namespace *
struct pid_namespace *pid_ns;
__rust_helper struct pid_namespace *
rust_helper_get_pid_ns(struct pid_namespace *ns)
struct pid_namespace *ns)
struct pid_namespace *proc_pidns = proc_pid_ns(sb);