• Home
  • Raw
  • Download

Lines Matching refs:task

273 static struct pid **task_pid_ptr(struct task_struct *task, enum pid_type type)  in task_pid_ptr()  argument
276 &task->thread_pid : in task_pid_ptr()
277 &task->signal->pids[type]; in task_pid_ptr()
283 void attach_pid(struct task_struct *task, enum pid_type type) in attach_pid() argument
285 struct pid *pid = *task_pid_ptr(task, type); in attach_pid()
286 hlist_add_head_rcu(&task->pid_links[type], &pid->tasks[type]); in attach_pid()
289 static void __change_pid(struct task_struct *task, enum pid_type type, in __change_pid() argument
292 struct pid **pid_ptr = task_pid_ptr(task, type); in __change_pid()
298 hlist_del_rcu(&task->pid_links[type]); in __change_pid()
308 void detach_pid(struct task_struct *task, enum pid_type type) in detach_pid() argument
310 __change_pid(task, type, NULL); in detach_pid()
313 void change_pid(struct task_struct *task, enum pid_type type, in change_pid() argument
316 __change_pid(task, type, pid); in change_pid()
317 attach_pid(task, type); in change_pid()
360 struct task_struct *task; in find_get_task_by_vpid() local
363 task = find_task_by_vpid(nr); in find_get_task_by_vpid()
364 if (task) in find_get_task_by_vpid()
365 get_task_struct(task); in find_get_task_by_vpid()
368 return task; in find_get_task_by_vpid()
371 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) in get_task_pid() argument
375 pid = get_pid(rcu_dereference(*task_pid_ptr(task, type))); in get_task_pid()
425 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, in __task_pid_nr_ns() argument
433 if (likely(pid_alive(task))) in __task_pid_nr_ns()
434 nr = pid_nr_ns(rcu_dereference(*task_pid_ptr(task, type)), ns); in __task_pid_nr_ns()