summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_nfsiod.c
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2008-11-02 17:00:23 +0000
committertrhodes <trhodes@FreeBSD.org>2008-11-02 17:00:23 +0000
commit3c9c77e15491f6a4261fe0d61119b8baebfcd5d9 (patch)
tree528551e392152f8d9fdc538805ac34ec59e746a9 /sys/nfsclient/nfs_nfsiod.c
parent1bdd099a165cd9460b02dc2817d77d624f104550 (diff)
downloadFreeBSD-src-3c9c77e15491f6a4261fe0d61119b8baebfcd5d9.zip
FreeBSD-src-3c9c77e15491f6a4261fe0d61119b8baebfcd5d9.tar.gz
Document a few sysctls in the NFS client and server code.
Minor style(9) where applicable. Approved by: alfred (slightly older version)
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
-rw-r--r--sys/nfsclient/nfs_nfsiod.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c
index 8e51123..9e0e272 100644
--- a/sys/nfsclient/nfs_nfsiod.c
+++ b/sys/nfsclient/nfs_nfsiod.c
@@ -84,7 +84,8 @@ SYSCTL_DECL(_vfs_nfs);
/* Maximum number of seconds a nfsiod kthread will sleep before exiting */
static unsigned int nfs_iodmaxidle = 120;
-SYSCTL_UINT(_vfs_nfs, OID_AUTO, iodmaxidle, CTLFLAG_RW, &nfs_iodmaxidle, 0, "");
+SYSCTL_UINT(_vfs_nfs, OID_AUTO, iodmaxidle, CTLFLAG_RW, &nfs_iodmaxidle, 0,
+ "Max number of seconds an nfsiod kthread will sleep before exiting");
/* Maximum number of nfsiod kthreads */
unsigned int nfs_iodmax = 20;
@@ -121,7 +122,8 @@ out:
return (0);
}
SYSCTL_PROC(_vfs_nfs, OID_AUTO, iodmin, CTLTYPE_UINT | CTLFLAG_RW, 0,
- sizeof (nfs_iodmin), sysctl_iodmin, "IU", "");
+ sizeof (nfs_iodmin), sysctl_iodmin, "IU",
+ "Min number of nfsiod kthreads to keep as spares");
static int
@@ -157,7 +159,8 @@ out:
return (0);
}
SYSCTL_PROC(_vfs_nfs, OID_AUTO, iodmax, CTLTYPE_UINT | CTLFLAG_RW, 0,
- sizeof (nfs_iodmax), sysctl_iodmax, "IU", "");
+ sizeof (nfs_iodmax), sysctl_iodmax, "IU",
+ "Max number of nfsiod kthreads");
int
nfs_nfsiodnew(void)
@@ -208,7 +211,8 @@ nfsiod_setup(void *dummy)
SYSINIT(nfsiod, SI_SUB_KTHREAD_IDLE, SI_ORDER_ANY, nfsiod_setup, NULL);
static int nfs_defect = 0;
-SYSCTL_INT(_vfs_nfs, OID_AUTO, defect, CTLFLAG_RW, &nfs_defect, 0, "");
+SYSCTL_INT(_vfs_nfs, OID_AUTO, defect, CTLFLAG_RW, &nfs_defect, 0,
+ "Allow nfsiods to migrate serving different mounts");
/*
* Asynchronous I/O daemons for client nfs.
OpenPOWER on IntegriCloud