at_fork & at_exit
From: Arun C Murthy
Date: Tue Dec 21 2004 - 09:42:34 EST
Im looking for linux equivalent of the FreeBSD calls:
(*forklist_fn)(struct proc *, struct proc *, int);
int at_fork(forklist_fn func);
The at_fork facility allows a kernel module to ensure that it is
notified at any process fork. The function func is called with the a
pointer to the forking process's proc structure, a pointer to the
child's process structure and a flag word, as used in rfork(2) to
indicate the type of fork.
If the requirement for notification is removed, then the function
rm_at_fork() must be called with the exact func argument as the
corresponding call to at_fork().
typedef void (exitlist_fn) (struct proc *);
int at_exit(exitlist_fn func);
The at_exit facility allows a kernel module to ensure that it is
notified at any process exit. The function func is called with the a
pointer to the exiting process's proc structure.
Specifically im on RHEL3... any pointers are appreciated...
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/