#include <linux/mm.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/rculist.h>
#include <linux/bootmem.h>
#include <linux/hash.h>
#include <linux/pid_namespace.h>
#include <linux/init_task.h>
#include <linux/syscalls.h>
Go to the source code of this file.
|
| EXPORT_SYMBOL_GPL (init_pid_ns) |
|
int | is_container_init (struct task_struct *tsk) |
|
| EXPORT_SYMBOL (is_container_init) |
|
int | next_pidmap (struct pid_namespace *pid_ns, unsigned int last) |
|
void | put_pid (struct pid *pid) |
|
| EXPORT_SYMBOL_GPL (put_pid) |
|
void | free_pid (struct pid *pid) |
|
struct pid * | alloc_pid (struct pid_namespace *ns) |
|
struct pid * | find_pid_ns (int nr, struct pid_namespace *ns) |
|
| EXPORT_SYMBOL_GPL (find_pid_ns) |
|
struct pid * | find_vpid (int nr) |
|
| EXPORT_SYMBOL_GPL (find_vpid) |
|
void | attach_pid (struct task_struct *task, enum pid_type type, struct pid *pid) |
|
void | detach_pid (struct task_struct *task, enum pid_type type) |
|
void | change_pid (struct task_struct *task, enum pid_type type, struct pid *pid) |
|
void | transfer_pid (struct task_struct *old, struct task_struct *new, enum pid_type type) |
|
struct task_struct * | pid_task (struct pid *pid, enum pid_type type) |
|
| EXPORT_SYMBOL (pid_task) |
|
struct task_struct * | find_task_by_pid_ns (pid_t nr, struct pid_namespace *ns) |
|
struct task_struct * | find_task_by_vpid (pid_t vnr) |
|
struct pid * | get_task_pid (struct task_struct *task, enum pid_type type) |
|
| EXPORT_SYMBOL_GPL (get_task_pid) |
|
struct task_struct * | get_pid_task (struct pid *pid, enum pid_type type) |
|
| EXPORT_SYMBOL_GPL (get_pid_task) |
|
struct pid * | find_get_pid (pid_t nr) |
|
| EXPORT_SYMBOL_GPL (find_get_pid) |
|
pid_t | pid_nr_ns (struct pid *pid, struct pid_namespace *ns) |
|
| EXPORT_SYMBOL_GPL (pid_nr_ns) |
|
pid_t | pid_vnr (struct pid *pid) |
|
| EXPORT_SYMBOL_GPL (pid_vnr) |
|
pid_t | __task_pid_nr_ns (struct task_struct *task, enum pid_type type, struct pid_namespace *ns) |
|
| EXPORT_SYMBOL (__task_pid_nr_ns) |
|
pid_t | task_tgid_nr_ns (struct task_struct *tsk, struct pid_namespace *ns) |
|
| EXPORT_SYMBOL (task_tgid_nr_ns) |
|
struct pid_namespace * | task_active_pid_ns (struct task_struct *tsk) |
|
| EXPORT_SYMBOL_GPL (task_active_pid_ns) |
|
struct pid * | find_ge_pid (int nr, struct pid_namespace *ns) |
|
void __init | pidhash_init (void) |
|
void __init | pidmap_init (void) |
|
Definition at line 53 of file pid.c.
Definition at line 54 of file pid.c.
Definition at line 62 of file pid.c.
#define pid_hashfn |
( |
|
nr, |
|
|
|
ns |
|
) |
| hash_long((unsigned long)nr + (unsigned long)ns, pidhash_shift) |
Definition at line 40 of file pid.c.
#define RESERVED_PIDS 300 |
Definition at line 48 of file pid.c.
Definition at line 84 of file pid.c.
Initial value:= {
.kref = {
},
.pidmap = {
},
.last_pid = 0,
.level = 0,
}
Definition at line 71 of file pid.c.
Definition at line 44 of file pid.c.
Definition at line 46 of file pid.c.
Definition at line 51 of file pid.c.
Definition at line 50 of file pid.c.