Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
pid.h File Reference
#include <linux/rcupdate.h>

Go to the source code of this file.

Data Structures

struct  upid
 
struct  pid
 
struct  pid_link
 

Macros

#define do_each_pid_task(pid, type, task)
 
#define while_each_pid_task(pid, type, task)
 
#define do_each_pid_thread(pid, type, task)
 
#define while_each_pid_thread(pid, type, task)
 

Enumerations

enum  pid_type { PIDTYPE_PID, PIDTYPE_PGID, PIDTYPE_SID, PIDTYPE_MAX }
 

Functions

void put_pid (struct pid *pid)
 
struct task_structpid_task (struct pid *pid, enum pid_type)
 
struct task_structget_pid_task (struct pid *pid, enum pid_type)
 
struct pidget_task_pid (struct task_struct *task, enum pid_type type)
 
void attach_pid (struct task_struct *task, enum pid_type type, struct pid *pid)
 
void detach_pid (struct task_struct *task, enum pid_type)
 
void change_pid (struct task_struct *task, enum pid_type, struct pid *pid)
 
void transfer_pid (struct task_struct *old, struct task_struct *new, enum pid_type)
 
struct pidfind_pid_ns (int nr, struct pid_namespace *ns)
 
struct pidfind_vpid (int nr)
 
struct pidfind_get_pid (int nr)
 
struct pidfind_ge_pid (int nr, struct pid_namespace *)
 
int next_pidmap (struct pid_namespace *pid_ns, unsigned int last)
 
struct pidalloc_pid (struct pid_namespace *ns)
 
void free_pid (struct pid *pid)
 
pid_t pid_nr_ns (struct pid *pid, struct pid_namespace *ns)
 
pid_t pid_vnr (struct pid *pid)
 

Variables

struct pid init_struct_pid
 
struct pid_namespace init_pid_ns
 

Macro Definition Documentation

#define do_each_pid_task (   pid,
  type,
  task 
)
Value:
do { \
struct hlist_node *pos___; \
if ((pid) != NULL) \
hlist_for_each_entry_rcu((task), pos___, \
&(pid)->tasks[type], pids[type].node) {

Definition at line 176 of file pid.h.

#define do_each_pid_thread (   pid,
  type,
  task 
)
Value:

Definition at line 193 of file pid.h.

#define while_each_pid_task (   pid,
  type,
  task 
)
Value:
if (type == PIDTYPE_PID) \
break; \
} \
} while (0)

Definition at line 187 of file pid.h.

#define while_each_pid_thread (   pid,
  type,
  task 
)
Value:
} while_each_thread(tg___, task); \
task = tg___; \

Definition at line 198 of file pid.h.

Enumeration Type Documentation

enum pid_type
Enumerator:
PIDTYPE_PID 
PIDTYPE_PGID 
PIDTYPE_SID 
PIDTYPE_MAX 

Definition at line 6 of file pid.h.

Function Documentation

struct pid* alloc_pid ( struct pid_namespace ns)
read

Definition at line 282 of file pid.c.

void attach_pid ( struct task_struct task,
enum pid_type  type,
struct pid pid 
)

Definition at line 354 of file pid.c.

void change_pid ( struct task_struct task,
enum  pid_type,
struct pid pid 
)

Definition at line 389 of file pid.c.

void detach_pid ( struct task_struct task,
enum  pid_type 
)

Definition at line 384 of file pid.c.

struct pid* find_ge_pid ( int  nr,
struct pid_namespace  
)
read

Definition at line 526 of file pid.c.

struct pid* find_get_pid ( int  nr)
read

Definition at line 458 of file pid.c.

struct pid* find_pid_ns ( int  nr,
struct pid_namespace ns 
)
read

Definition at line 330 of file pid.c.

struct pid* find_vpid ( int  nr)
read

Definition at line 345 of file pid.c.

void free_pid ( struct pid pid)

Definition at line 265 of file pid.c.

struct task_struct* get_pid_task ( struct pid pid,
enum  pid_type 
)
read

Definition at line 446 of file pid.c.

struct pid* get_task_pid ( struct task_struct task,
enum pid_type  type 
)
read

Definition at line 434 of file pid.c.

int next_pidmap ( struct pid_namespace pid_ns,
unsigned int  last 
)

Definition at line 222 of file pid.c.

pid_t pid_nr_ns ( struct pid pid,
struct pid_namespace ns 
)

Definition at line 470 of file pid.c.

struct task_struct* pid_task ( struct pid pid,
enum  pid_type 
)
read

Definition at line 404 of file pid.c.

pid_t pid_vnr ( struct pid pid)

Definition at line 484 of file pid.c.

void put_pid ( struct pid pid)

Definition at line 243 of file pid.c.

void transfer_pid ( struct task_struct old,
struct task_struct new,
enum  pid_type 
)

Definition at line 397 of file pid.c.

Variable Documentation

struct pid_namespace init_pid_ns

Definition at line 71 of file pid.c.

struct pid init_struct_pid

Definition at line 44 of file pid.c.