Searched refs:pid_ns (Results 1 - 19 of 19) sorted by relevance

/linux-master/include/linux/
H A Dtsacct_kern.h15 struct pid_namespace *pid_ns,
19 struct pid_namespace *pid_ns,
18 bacct_add_tsk(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct taskstats *stats, struct task_struct *tsk) argument
H A Dpid_namespace.h77 extern void zap_pid_ns_processes(struct pid_namespace *pid_ns);
78 extern int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd);
111 static inline int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) argument
H A Dproc_fs.h62 struct pid_namespace *pid_ns; member in struct:proc_fs_info
242 return proc_sb_info(sb)->pid_ns;
/linux-master/kernel/
H A Dpid_namespace.c170 void zap_pid_ns_processes(struct pid_namespace *pid_ns) argument
179 disable_pid_allocation(pid_ns);
206 idr_for_each_entry_continue(&pid_ns->idr, pid, nr) {
231 * to pid_ns->child_reaper. Thus pidns->child_reaper needs to
234 * The code relies on the pid_ns->child_reaper ignoring
249 if (pid_ns->pid_allocated == init_pids)
272 if (pid_ns->reboot)
273 current->signal->group_exit_code = pid_ns->reboot;
275 acct_exit_ns(pid_ns);
283 struct pid_namespace *pid_ns local
314 reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) argument
424 struct pid_namespace *pid_ns, *p; local
[all...]
H A Dtsacct.c21 struct pid_namespace *pid_ns,
58 stats->ac_pid = task_pid_nr_ns(tsk, pid_ns);
59 stats->ac_tgid = task_tgid_nr_ns(tsk, pid_ns);
65 task_tgid_nr_ns(rcu_dereference(tsk->real_parent), pid_ns) : 0;
20 bacct_add_tsk(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct taskstats *stats, struct task_struct *tsk) argument
H A Dnsproxy.c380 struct pid_namespace *pid_ns = NULL; local
409 pid_ns = task_active_pid_ns(tsk);
410 if (unlikely(!pid_ns)) {
415 get_pid_ns(pid_ns);
463 ret = validate_ns(nsset, &pid_ns->ns);
494 if (pid_ns)
495 put_pid_ns(pid_ns);
H A Dreboot.c718 struct pid_namespace *pid_ns = task_active_pid_ns(current); local
723 if (!ns_capable(pid_ns->user_ns, CAP_SYS_BOOT))
739 ret = reboot_pid_ns(pid_ns, cmd);
H A Dtaskstats.c175 struct pid_namespace *pid_ns,
192 bacct_add_tsk(user_ns, pid_ns, stats, tsk);
174 fill_stats(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct task_struct *tsk, struct taskstats *stats) argument
H A Dexit.c590 struct pid_namespace *pid_ns = task_active_pid_ns(father); variable in typeref:struct:pid_namespace
591 struct task_struct *reaper = pid_ns->child_reaper;
599 pid_ns->child_reaper = reaper;
610 zap_pid_ns_processes(pid_ns); variable
635 * Find the first ->is_child_subreaper ancestor in our pid_ns.
/linux-master/fs/proc/
H A Droot.c30 struct pid_namespace *pid_ns; member in struct:proc_fs_context
170 fs_info->pid_ns = get_pid_ns(ctx->pid_ns);
233 put_pid_ns(ctx->pid_ns);
252 ctx->pid_ns = get_pid_ns(task_active_pid_ns(current));
254 fc->user_ns = get_user_ns(ctx->pid_ns->user_ns);
273 put_pid_ns(fs_info->pid_ns);
H A Dbase.c3456 ns = fs_info->pid_ns;
3765 ns = fs_info->pid_ns;
/linux-master/ipc/
H A Dutil.c775 struct pid_namespace *pid_ns; member in struct:ipc_proc_iter
782 return iter->pid_ns;
910 iter->pid_ns = get_pid_ns(task_active_pid_ns(current));
920 put_pid_ns(iter->pid_ns);
H A Dmsg.c1343 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); local
1355 pid_nr_ns(msq->q_lspid, pid_ns),
1356 pid_nr_ns(msq->q_lrpid, pid_ns),
H A Dshm.c1841 struct pid_namespace *pid_ns = ipc_seq_pid_ns(s); local
1864 pid_nr_ns(shp->shm_cprid, pid_ns),
1865 pid_nr_ns(shp->shm_lprid, pid_ns),
/linux-master/net/ipv6/
H A Dip6_flowlabel.c752 struct pid_namespace *pid_ns; member in struct:ip6fl_iter_state
813 state->pid_ns = proc_pid_ns(file_inode(seq->file)->i_sb);
849 pid_nr_ns(fl->owner.pid, state->pid_ns) :
/linux-master/fs/fuse/
H A Dinode.c932 fc->pid_ns = get_pid_ns(task_active_pid_ns(current));
964 put_pid_ns(fc->pid_ns);
H A Dfuse_i.h619 struct pid_namespace *pid_ns; member in struct:fuse_conn
H A Ddev.c140 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns);
471 req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns);
H A Dfile.c2615 fl->c.flc_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns);
2678 pid_t pid_nr = pid_nr_ns(pid, fm->fc->pid_ns);

Completed in 493 milliseconds