1PID_ALIVE(9) Driver Basics PID_ALIVE(9)
23
4
NAME
6pid_alive - check that a task structure is not stale
7
SYNOPSIS
9int pid_alive(const struct task_struct * p);
10
ARGUMENTS
12p
13Task structure to be checked.
14
DESCRIPTION
16Test if a process is not yet dead (at most zombie state) If pid_alive
17fails, then pointers within the task structure can be stale and must
18not be dereferenced.
19
RETURN
211 if the process is alive. 0 otherwise.
22
COPYRIGHT
24Kernel Hackers Manual 3.10 June 2019 PID_ALIVE(9)