Date: Thu, 03 Aug 2000 16:17:23 +0100 From: Laurence Barry <laurence@herculeez.com> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: nfiles Message-ID: <39898D03.6185C6C3@herculeez.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Sure this is a simple one ... I need to determine the total number of files open on a system. The only way I can think to do this is a sysctl() call with mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file structure that is returned. There must be a simpler way. Laurence Barry -- laurence@herculeez.com [-- Attachment #2 --] <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <pre>Sure this is a simple one ... I need to determine the total number of files open on a system. The only way I can think to do this is a sysctl() call with mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file structure that is returned. There must be a simpler way. Laurence Barry -- laurence@herculeez.com</pre> </html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39898D03.6185C6C3>
