Lines Matching refs:pid_ns
166 void zap_pid_ns_processes(struct pid_namespace *pid_ns) in zap_pid_ns_processes() argument
175 disable_pid_allocation(pid_ns); in zap_pid_ns_processes()
202 idr_for_each_entry_continue(&pid_ns->idr, pid, nr) { in zap_pid_ns_processes()
245 if (pid_ns->pid_allocated == init_pids) in zap_pid_ns_processes()
251 if (pid_ns->reboot) in zap_pid_ns_processes()
252 current->signal->group_exit_code = pid_ns->reboot; in zap_pid_ns_processes()
254 acct_exit_ns(pid_ns); in zap_pid_ns_processes()
262 struct pid_namespace *pid_ns = task_active_pid_ns(current); in pid_ns_ctl_handler() local
266 if (write && !checkpoint_restore_ns_capable(pid_ns->user_ns)) in pid_ns_ctl_handler()
275 next = idr_get_cursor(&pid_ns->idr) - 1; in pid_ns_ctl_handler()
280 idr_set_cursor(&pid_ns->idr, next + 1); in pid_ns_ctl_handler()
300 int reboot_pid_ns(struct pid_namespace *pid_ns, int cmd) in reboot_pid_ns() argument
302 if (pid_ns == &init_pid_ns) in reboot_pid_ns()
308 pid_ns->reboot = SIGHUP; in reboot_pid_ns()
313 pid_ns->reboot = SIGINT; in reboot_pid_ns()
320 send_sig(SIGKILL, pid_ns->child_reaper, 1); in reboot_pid_ns()
410 struct pid_namespace *pid_ns, *p; in pidns_get_parent() local
413 pid_ns = p = to_pid_ns(ns)->parent; in pidns_get_parent()
422 return &get_pid_ns(pid_ns)->ns; in pidns_get_parent()