Date: Thu, 11 Apr 2002 16:27:19 +0200 From: Pawel Jakub Dawidek <nick@prioris.mini.pw.edu.pl> To: freebsd-hackers@freebsd.org Subject: How to catch closef()? Message-ID: <20020411162719.A93863@prioris.mini.pw.edu.pl>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hey. How to catch all file descryptors closing when I'm in kld module? I can't catch closef() because this isn't syscall of course:) At the moment I'm catching succeded close(), sys_exit(), and succeded kill(). But what with kernel kills (I mean segfaults, etc.)? I need this, because in cerb (http://cerber.sourceforge.net) I need to have function that will give me filename from file descryptor and pid. Any ideas? I don't want to patch kernel directly. -- Pawel Jakub Dawidek Network Administrator. Am I Evil? Yes, I Am. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: 2.6.3ia iQCVAwUBPLWdRz/PhmMH/Mf1AQG2QwP+O28NgZyccHzICVtgHfIHHE1pkmiiZJ31 FxWdS0C6eIK7cgACnV0jR5JC1blMi1fH3Zxik5yu3aGPHUv2WZoAynI98SMlNS4o lGcBAutc/fEGWhKPrjK2tmFJNSgeqtv7BMzsRkj+vAczreEO8eTnlggNrZYs5V1S u2J/U++fl+k= =hbRc -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020411162719.A93863>
