Lines Matching refs:task
389 void attach_pid(struct task_struct *task, enum pid_type type) in attach_pid() argument
391 struct pid_link *link = &task->pids[type]; in attach_pid()
395 static void __change_pid(struct task_struct *task, enum pid_type type, in __change_pid() argument
402 link = &task->pids[type]; in __change_pid()
415 void detach_pid(struct task_struct *task, enum pid_type type) in detach_pid() argument
417 __change_pid(task, type, NULL); in detach_pid()
420 void change_pid(struct task_struct *task, enum pid_type type, in change_pid() argument
423 __change_pid(task, type, pid); in change_pid()
424 attach_pid(task, type); in change_pid()
464 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) in get_task_pid() argument
469 task = task->group_leader; in get_task_pid()
470 pid = get_pid(rcu_dereference(task->pids[type].pid)); in get_task_pid()
520 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, in __task_pid_nr_ns() argument
528 if (likely(pid_alive(task))) { in __task_pid_nr_ns()
530 task = task->group_leader; in __task_pid_nr_ns()
531 nr = pid_nr_ns(rcu_dereference(task->pids[type].pid), ns); in __task_pid_nr_ns()