diff options
author | dfr <dfr@FreeBSD.org> | 1999-02-16 10:49:55 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-02-16 10:49:55 +0000 |
commit | 22ceb237f0acde5a7f56b22bcbec381eb41db3f8 (patch) | |
tree | 7ff504a77dea2abe8ecf3178beb55d9d3592a1b9 /sys/nfsserver | |
parent | a90ae0fb61f0e918e3cafba8d21edfe5a29559b9 (diff) | |
download | FreeBSD-src-22ceb237f0acde5a7f56b22bcbec381eb41db3f8.zip FreeBSD-src-22ceb237f0acde5a7f56b22bcbec381eb41db3f8.tar.gz |
* Change sysctl from using linker_set to construct its tree using SLISTs.
This makes it possible to change the sysctl tree at runtime.
* Change KLD to find and register any sysctl nodes contained in the loaded
file and to unregister them when the file is unloaded.
Reviewed by: Archie Cobbs <archie@whistle.com>,
Peter Wemm <peter@netplex.com.au> (well they looked at it anyway)
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 4 | ||||
-rw-r--r-- | sys/nfsserver/nfs_syscalls.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index 346c4fc..cb6f0e8 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.8 (Berkeley) 7/31/95 - * $Id: nfs_serv.c,v 1.71 1998/12/08 23:11:24 eivind Exp $ + * $Id: nfs_serv.c,v 1.72 1998/12/09 15:12:53 eivind Exp $ */ /* @@ -99,6 +99,8 @@ extern struct nfsstats nfsstats; int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000; int nfsrvw_procrastinate_v3 = 0; +SYSCTL_DECL(_vfs_nfs); + static int nfs_async; SYSCTL_INT(_vfs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, ""); diff --git a/sys/nfsserver/nfs_syscalls.c b/sys/nfsserver/nfs_syscalls.c index 5050ec8..c8da2db 100644 --- a/sys/nfsserver/nfs_syscalls.c +++ b/sys/nfsserver/nfs_syscalls.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95 - * $Id: nfs_syscalls.c,v 1.44 1998/12/07 21:58:44 archie Exp $ + * $Id: nfs_syscalls.c,v 1.45 1999/01/27 22:42:27 dillon Exp $ */ #include <sys/param.h> @@ -109,6 +109,8 @@ static int nfssvc_addsock __P((struct file *, struct sockaddr *, struct proc *)); static int nfssvc_nfsd __P((struct nfsd_srvargs *,caddr_t,struct proc *)); +SYSCTL_DECL(_vfs_nfs); + static int nfs_privport = 0; SYSCTL_INT(_vfs_nfs, NFS_NFSPRIVPORT, nfs_privport, CTLFLAG_RW, &nfs_privport, 0, ""); SYSCTL_INT(_vfs_nfs, OID_AUTO, gatherdelay, CTLFLAG_RW, &nfsrvw_procrastinate, 0, ""); |