Lines Matching defs:ns
45 * find_pid_ns() using the int nr and struct pid_namespace *ns.
52 struct pid_namespace *ns;
121 extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
130 extern struct pid *alloc_pid(struct pid_namespace *ns, pid_t *set_tid,
133 extern void disable_pid_allocation(struct pid_namespace *ns);
143 * the resulting NULL pid-ns.
147 struct pid_namespace *ns = NULL;
149 ns = pid->numbers[pid->level].ns;
150 return ns;
170 * pid_nr_ns() : id seen from the ns specified.
183 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns);
224 * task_xid_nr_ns() : id seen from the ns specified;
228 pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type, struct pid_namespace *ns);
235 static inline pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
237 return __task_pid_nr_ns(tsk, PIDTYPE_PID, ns);
266 static inline pid_t task_pgrp_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
268 return __task_pid_nr_ns(tsk, PIDTYPE_PGID, ns);
277 static inline pid_t task_session_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
279 return __task_pid_nr_ns(tsk, PIDTYPE_SID, ns);
287 static inline pid_t task_tgid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns)
289 return __task_pid_nr_ns(tsk, PIDTYPE_TGID, ns);
297 static inline pid_t task_ppid_nr_ns(const struct task_struct *tsk, struct pid_namespace *ns)
303 pid = task_tgid_nr_ns(rcu_dereference(tsk->real_parent), ns);