diff options
Diffstat (limited to 'kernel/pid.c')
| -rw-r--r-- | kernel/pid.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 20d59fa2d493..064e76afa507 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | #include <linux/module.h> | 30 | #include <linux/module.h> |
| 31 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
| 32 | #include <linux/init.h> | 32 | #include <linux/init.h> |
| 33 | #include <linux/rculist.h> | ||
| 33 | #include <linux/bootmem.h> | 34 | #include <linux/bootmem.h> |
| 34 | #include <linux/hash.h> | 35 | #include <linux/hash.h> |
| 35 | #include <linux/pid_namespace.h> | 36 | #include <linux/pid_namespace.h> |
| @@ -308,12 +309,6 @@ struct pid *find_vpid(int nr) | |||
| 308 | } | 309 | } |
| 309 | EXPORT_SYMBOL_GPL(find_vpid); | 310 | EXPORT_SYMBOL_GPL(find_vpid); |
| 310 | 311 | ||
| 311 | struct pid *find_pid(int nr) | ||
| 312 | { | ||
| 313 | return find_pid_ns(nr, &init_pid_ns); | ||
| 314 | } | ||
| 315 | EXPORT_SYMBOL_GPL(find_pid); | ||
| 316 | |||
| 317 | /* | 312 | /* |
| 318 | * attach_pid() must be called with the tasklist_lock write-held. | 313 | * attach_pid() must be called with the tasklist_lock write-held. |
| 319 | */ | 314 | */ |
| @@ -434,6 +429,7 @@ struct pid *find_get_pid(pid_t nr) | |||
| 434 | 429 | ||
| 435 | return pid; | 430 | return pid; |
| 436 | } | 431 | } |
| 432 | EXPORT_SYMBOL_GPL(find_get_pid); | ||
| 437 | 433 | ||
| 438 | pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) | 434 | pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) |
| 439 | { | 435 | { |
| @@ -481,7 +477,7 @@ EXPORT_SYMBOL(task_session_nr_ns); | |||
| 481 | /* | 477 | /* |
| 482 | * Used by proc to find the first pid that is greater then or equal to nr. | 478 | * Used by proc to find the first pid that is greater then or equal to nr. |
| 483 | * | 479 | * |
| 484 | * If there is a pid at nr this function is exactly the same as find_pid. | 480 | * If there is a pid at nr this function is exactly the same as find_pid_ns. |
| 485 | */ | 481 | */ |
| 486 | struct pid *find_ge_pid(int nr, struct pid_namespace *ns) | 482 | struct pid *find_ge_pid(int nr, struct pid_namespace *ns) |
| 487 | { | 483 | { |
| @@ -496,7 +492,6 @@ struct pid *find_ge_pid(int nr, struct pid_namespace *ns) | |||
| 496 | 492 | ||
| 497 | return pid; | 493 | return pid; |
| 498 | } | 494 | } |
| 499 | EXPORT_SYMBOL_GPL(find_get_pid); | ||
| 500 | 495 | ||
| 501 | /* | 496 | /* |
| 502 | * The pid hash table is scaled according to the amount of memory in the | 497 | * The pid hash table is scaled according to the amount of memory in the |
