diff options
Diffstat (limited to 'kernel/pid.c')
-rw-r--r-- | kernel/pid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 939746fb4ce7..a32859c4a3cd 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
@@ -443,6 +443,12 @@ pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) | |||
443 | return nr; | 443 | return nr; |
444 | } | 444 | } |
445 | 445 | ||
446 | pid_t pid_vnr(struct pid *pid) | ||
447 | { | ||
448 | return pid_nr_ns(pid, current->nsproxy->pid_ns); | ||
449 | } | ||
450 | EXPORT_SYMBOL_GPL(pid_vnr); | ||
451 | |||
446 | pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) | 452 | pid_t task_pid_nr_ns(struct task_struct *tsk, struct pid_namespace *ns) |
447 | { | 453 | { |
448 | return pid_nr_ns(task_pid(tsk), ns); | 454 | return pid_nr_ns(task_pid(tsk), ns); |