Adds a system-wide process state-change notification routine.
#include <sys/types.h> #include <sys/errno.h> #include <sys/proc.h>
void prochadd (term) struct proch *term;
term | Points to a proch structure containing a notification routine to be added from the chain of systemwide notification routines. |
The prochadd kernel service allows kernel extensions to register for notification of major process state transitions. The prochadd service allows the caller to be notified when a process:
The complete list of callouts is:
The prochadd service is typically used to allow recovery or reassignment of resources when processes undergo major state changes.
The caller should allocate a proch structure and update the proch.handler field with the entry point of a caller-supplied notification routine before calling the prochadd kernel service. This notification routine is called once for each process in the system undergoing a major state change.
The proch structure has the following form:
struct proch { struct proch *next void *handler (); }
The prochadd kernel service can be called from the process environment only.
The prochadd kernel service is part of Base Operating System (BOS) Runtime.
The prochdel kernel service.
The Process State-Change Notification Routine.
Kernel Extension and Driver Management Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.