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()
465 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) in get_task_pid() argument
470 task = task->group_leader; in get_task_pid()
471 pid = get_pid(task->pids[type].pid); in get_task_pid()
521 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, in __task_pid_nr_ns() argument
529 if (likely(pid_alive(task))) { in __task_pid_nr_ns()
531 task = task->group_leader; in __task_pid_nr_ns()
532 nr = pid_nr_ns(task->pids[type].pid, ns); in __task_pid_nr_ns()