• Home
  • Raw
  • Download

Lines Matching refs:nr

57 		.nr		= 0,
152 idr_remove(&ns->idr, upid->nr); in free_pid()
164 int i, nr; in alloc_pid() local
212 nr = idr_alloc(&tmp->idr, NULL, tid, in alloc_pid()
218 if (nr == -ENOSPC) in alloc_pid()
219 nr = -EEXIST; in alloc_pid()
233 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid()
239 if (nr < 0) { in alloc_pid()
240 retval = (nr == -ENOSPC) ? -EAGAIN : nr; in alloc_pid()
244 pid->numbers[i].nr = nr; in alloc_pid()
274 idr_replace(&upid->ns->idr, pid, upid->nr); in alloc_pid()
289 idr_remove(&upid->ns->idr, upid->nr); in alloc_pid()
309 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns() argument
311 return idr_find(&ns->idr, nr); in find_pid_ns()
315 struct pid *find_vpid(int nr) in find_vpid() argument
317 return find_pid_ns(nr, task_active_pid_ns(current)); in find_vpid()
413 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns() argument
417 return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID); in find_task_by_pid_ns()
426 struct task_struct *find_get_task_by_vpid(pid_t nr) in find_get_task_by_vpid() argument
431 task = find_task_by_vpid(nr); in find_get_task_by_vpid()
461 struct pid *find_get_pid(pid_t nr) in find_get_pid() argument
466 pid = get_pid(find_vpid(nr)); in find_get_pid()
476 pid_t nr = 0; in pid_nr_ns() local
481 nr = upid->nr; in pid_nr_ns()
483 return nr; in pid_nr_ns()
496 pid_t nr = 0; in __task_pid_nr_ns() local
501 nr = pid_nr_ns(rcu_dereference(*task_pid_ptr(task, type)), ns); in __task_pid_nr_ns()
504 return nr; in __task_pid_nr_ns()
519 struct pid *find_ge_pid(int nr, struct pid_namespace *ns) in find_ge_pid() argument
521 return idr_get_next(&ns->idr, &nr); in find_ge_pid()