diff options
Diffstat (limited to 'kernel/pid.c')
| -rw-r--r-- | kernel/pid.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 30bd5d4b2ac7..064e76afa507 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
| @@ -309,12 +309,6 @@ struct pid *find_vpid(int nr) | |||
| 309 | } | 309 | } |
| 310 | EXPORT_SYMBOL_GPL(find_vpid); | 310 | EXPORT_SYMBOL_GPL(find_vpid); |
| 311 | 311 | ||
| 312 | struct pid *find_pid(int nr) | ||
| 313 | { | ||
| 314 | return find_pid_ns(nr, &init_pid_ns); | ||
| 315 | } | ||
| 316 | EXPORT_SYMBOL_GPL(find_pid); | ||
| 317 | |||
| 318 | /* | 312 | /* |
| 319 | * attach_pid() must be called with the tasklist_lock write-held. | 313 | * attach_pid() must be called with the tasklist_lock write-held. |
| 320 | */ | 314 | */ |
| @@ -435,6 +429,7 @@ struct pid *find_get_pid(pid_t nr) | |||
| 435 | 429 | ||
| 436 | return pid; | 430 | return pid; |
| 437 | } | 431 | } |
| 432 | EXPORT_SYMBOL_GPL(find_get_pid); | ||
| 438 | 433 | ||
| 439 | 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) |
| 440 | { | 435 | { |
| @@ -482,7 +477,7 @@ EXPORT_SYMBOL(task_session_nr_ns); | |||
| 482 | /* | 477 | /* |
| 483 | * 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. |
| 484 | * | 479 | * |
| 485 | * 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. |
| 486 | */ | 481 | */ |
| 487 | struct pid *find_ge_pid(int nr, struct pid_namespace *ns) | 482 | struct pid *find_ge_pid(int nr, struct pid_namespace *ns) |
| 488 | { | 483 | { |
| @@ -497,7 +492,6 @@ struct pid *find_ge_pid(int nr, struct pid_namespace *ns) | |||
| 497 | 492 | ||
| 498 | return pid; | 493 | return pid; |
| 499 | } | 494 | } |
| 500 | EXPORT_SYMBOL_GPL(find_get_pid); | ||
| 501 | 495 | ||
| 502 | /* | 496 | /* |
| 503 | * 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 |
