other versions
- jessie 3.16.56-1+deb8u1
PID_ALIVE(9) | Driver Basics | PID_ALIVE(9) |
NAME¶
pid_alive - check that a task structure is not staleSYNOPSIS¶
int
pid_alive(const struct task_struct * p);
ARGUMENTS¶
pTask structure to be checked.
DESCRIPTION¶
Test if a process is not yet dead (at most zombie state) If pid_alive fails, then pointers within the task structure can be stale and must not be dereferenced.RETURN¶
1 if the process is alive. 0 otherwise.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |