• Home
  • Raw
  • Download

Lines Matching refs:nr

57 		.nr		= 0,
155 idr_remove(&ns->idr, upid->nr); in free_pid()
167 int i, nr; in alloc_pid() local
215 nr = idr_alloc(&tmp->idr, NULL, tid, in alloc_pid()
221 if (nr == -ENOSPC) in alloc_pid()
222 nr = -EEXIST; in alloc_pid()
236 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid()
242 if (nr < 0) { in alloc_pid()
243 retval = (nr == -ENOSPC) ? -EAGAIN : nr; in alloc_pid()
247 pid->numbers[i].nr = nr; in alloc_pid()
277 idr_replace(&upid->ns->idr, pid, upid->nr); in alloc_pid()
292 idr_remove(&upid->ns->idr, upid->nr); in alloc_pid()
312 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns() argument
314 return idr_find(&ns->idr, nr); in find_pid_ns()
318 struct pid *find_vpid(int nr) in find_vpid() argument
320 return find_pid_ns(nr, task_active_pid_ns(current)); in find_vpid()
416 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns() argument
420 return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID); in find_task_by_pid_ns()
429 struct task_struct *find_get_task_by_vpid(pid_t nr) in find_get_task_by_vpid() argument
434 task = find_task_by_vpid(nr); in find_get_task_by_vpid()
464 struct pid *find_get_pid(pid_t nr) in find_get_pid() argument
469 pid = get_pid(find_vpid(nr)); in find_get_pid()
479 pid_t nr = 0; in pid_nr_ns() local
484 nr = upid->nr; in pid_nr_ns()
486 return nr; in pid_nr_ns()
499 pid_t nr = 0; in __task_pid_nr_ns() local
504 nr = pid_nr_ns(rcu_dereference(*task_pid_ptr(task, type)), ns); in __task_pid_nr_ns()
507 return nr; in __task_pid_nr_ns()
522 struct pid *find_ge_pid(int nr, struct pid_namespace *ns) in find_ge_pid() argument
524 return idr_get_next(&ns->idr, &nr); in find_ge_pid()