All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun C Murthy <acmurthy@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: at_fork & at_exit
Date: Tue, 21 Dec 2004 20:10:07 +0530	[thread overview]
Message-ID: <41C835C7.2010203@gmail.com> (raw)

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


             reply	other threads:[~2004-12-21 14:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-21 14:40 Arun C Murthy [this message]
2004-12-21 14:46 ` at_fork & at_exit 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41C835C7.2010203@gmail.com \
    --to=acmurthy@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.