1PID_ALIVE(9)                     Driver Basics                    PID_ALIVE(9)
2
3
4

NAME

6       pid_alive - check that a task structure is not stale
7

SYNOPSIS

9       int pid_alive(const struct task_struct * p);
10

ARGUMENTS

12       p
13           Task structure to be checked.
14

DESCRIPTION

16       Test if a process is not yet dead (at most zombie state) If pid_alive
17       fails, then pointers within the task structure can be stale and must
18       not be dereferenced.
19

RETURN

21       1 if the process is alive. 0 otherwise.
22
24Kernel Hackers Manual 3.10         June 2019                      PID_ALIVE(9)
Impressum