new sysctl 'kern.openfiles' (exports nfiles to userland)

This commit is contained in:
Alfred Perlstein 2000-08-26 23:49:44 +00:00
parent cffd8a1d93
commit c58b821e4c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65122

View File

@ -1319,6 +1319,9 @@ SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, CTLFLAG_RW,
SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW,
&maxfiles, 0, "Maximum number of files");
SYSCTL_INT(_kern, OID_AUTO, openfiles, CTLFLAG_RD,
&nfiles, 0, "System-wide number of open files");
#ifdef DEVFS
static void
fildesc_clone(void *arg, char *name, int namelen, dev_t *dev)