public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* at_fork & at_exit
@ 2004-12-21 14:40 Arun C Murthy
  2004-12-21 14:46 ` Jan Engelhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arun C Murthy @ 2004-12-21 14:40 UTC (permalink / raw)
  To: linux-kernel

Hi,

Im looking for linux equivalent of the FreeBSD calls:

1. at_fork

     typedef void
     (*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().

2. at_exit

     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...

thanks,
Arun


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-24 20:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21 14:40 at_fork & at_exit Arun C Murthy
2004-12-21 14:46 ` Jan Engelhardt
2004-12-24 20:05   ` Arun C Murthy
2004-12-21 20:57 ` Rik van Riel
2004-12-21 20:59 ` Shankar Unni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox