- fix comment sentence capitalization.
- whitespace cleanup. No functional changes.
This commit is contained in:
parent
917131a2cf
commit
e221af6ac2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init_sysctl.c,v 1.109 2007/10/15 14:12:55 ad Exp $ */
|
||||
/* $NetBSD: init_sysctl.c,v 1.110 2007/10/16 16:05:50 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.109 2007/10/15 14:12:55 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.110 2007/10/16 16:05:50 christos Exp $");
|
||||
|
||||
#include "opt_sysv.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -208,8 +208,8 @@ static void fill_file(struct kinfo_file *, const struct file *, struct proc *,
|
|||
* ********************************************************************
|
||||
* section 1: setup routines
|
||||
* ********************************************************************
|
||||
* these functions are stuffed into a link set for sysctl setup
|
||||
* functions. they're never called or referenced from anywhere else.
|
||||
* These functions are stuffed into a link set for sysctl setup
|
||||
* functions. They're never called or referenced from anywhere else.
|
||||
* ********************************************************************
|
||||
*/
|
||||
|
||||
|
@ -1099,7 +1099,7 @@ sysctl_kern_trigger_panic(SYSCTLFN_ARGS)
|
|||
#endif
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.maxvnodes. drain vnodes if
|
||||
* sysctl helper routine for kern.maxvnodes. Drain vnodes if
|
||||
* new value is lower than desiredvnodes and then calls reinit
|
||||
* routines that needs to adjust to the new value.
|
||||
*/
|
||||
|
@ -1167,7 +1167,7 @@ sysctl_kern_rtc_offset(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.maxproc. ensures that the new
|
||||
* sysctl helper routine for kern.maxproc. Ensures that the new
|
||||
* values are not too low or too high.
|
||||
*/
|
||||
static int
|
||||
|
@ -1195,7 +1195,7 @@ sysctl_kern_maxproc(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper function for kern.hostid. the hostid is a long, but
|
||||
* sysctl helper function for kern.hostid. The hostid is a long, but
|
||||
* we export it as an int, so we need to give it a little help.
|
||||
*/
|
||||
static int
|
||||
|
@ -1243,7 +1243,7 @@ sysctl_setlen(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.clockrate. assembles a struct on
|
||||
* sysctl helper routine for kern.clockrate. Assembles a struct on
|
||||
* the fly to be returned to the caller.
|
||||
*/
|
||||
static int
|
||||
|
@ -1320,8 +1320,8 @@ sysctl_kern_file(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.msgbufsize and kern.msgbuf. for the
|
||||
* former it merely checks the message buffer is set up. for the latter,
|
||||
* sysctl helper routine for kern.msgbufsize and kern.msgbuf. For the
|
||||
* former it merely checks the message buffer is set up. For the latter,
|
||||
* it also copies out the data if necessary.
|
||||
*/
|
||||
static int
|
||||
|
@ -1390,7 +1390,7 @@ sysctl_msgbuf(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.defcorename. in the case of a new
|
||||
* sysctl helper routine for kern.defcorename. In the case of a new
|
||||
* string being assigned, check that it's not a zero-length string.
|
||||
* (XXX the check in -current doesn't work, but do we really care?)
|
||||
*/
|
||||
|
@ -1412,7 +1412,7 @@ sysctl_kern_defcorename(SYSCTLFN_ARGS)
|
|||
|
||||
/*
|
||||
* when sysctl_lookup() deals with a string, it's guaranteed
|
||||
* to come back nul terminated. so there. :)
|
||||
* to come back nul terminated. So there. :)
|
||||
*/
|
||||
if (strlen(newcorename) == 0) {
|
||||
error = EINVAL;
|
||||
|
@ -1426,7 +1426,7 @@ done:
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.cp_time node. adds up cpu time
|
||||
* sysctl helper routine for kern.cp_time node. Adds up cpu time
|
||||
* across all cpus.
|
||||
*/
|
||||
static int
|
||||
|
@ -1528,7 +1528,7 @@ sysctl_kern_cptime(SYSCTLFN_ARGS)
|
|||
|
||||
#if NPTY > 0
|
||||
/*
|
||||
* sysctl helper routine for kern.maxptys. ensures that any new value
|
||||
* sysctl helper routine for kern.maxptys. Ensures that any new value
|
||||
* is acceptable to the pty subsystem.
|
||||
*/
|
||||
static int
|
||||
|
@ -1555,7 +1555,7 @@ sysctl_kern_maxptys(SYSCTLFN_ARGS)
|
|||
#endif /* NPTY > 0 */
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.sbmax. basically just ensures that
|
||||
* sysctl helper routine for kern.sbmax. Basically just ensures that
|
||||
* any new value is not too small.
|
||||
*/
|
||||
static int
|
||||
|
@ -1577,7 +1577,7 @@ sysctl_kern_sbmax(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.urandom node. picks a random number
|
||||
* sysctl helper routine for kern.urandom node. Picks a random number
|
||||
* for you.
|
||||
*/
|
||||
static int
|
||||
|
@ -1599,7 +1599,7 @@ sysctl_kern_urnd(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.arandom node. picks a random number
|
||||
* sysctl helper routine for kern.arandom node. Picks a random number
|
||||
* for you.
|
||||
*/
|
||||
static int
|
||||
|
@ -1734,7 +1734,7 @@ sysctl_kern_lwp(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.forkfsleep node. ensures that the
|
||||
* sysctl helper routine for kern.forkfsleep node. Ensures that the
|
||||
* given value is not too large or two small, and is at least one
|
||||
* timer tick if not zero.
|
||||
*/
|
||||
|
@ -2476,7 +2476,7 @@ out:
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.cp_id node. maps cpus to their
|
||||
* sysctl helper routine for kern.cp_id node. Maps cpus to their
|
||||
* cpuids.
|
||||
*/
|
||||
static int
|
||||
|
@ -2508,8 +2508,8 @@ sysctl_kern_cpid(SYSCTLFN_ARGS)
|
|||
CPU_INFO_ITERATOR cii;
|
||||
|
||||
/*
|
||||
* here you may either retrieve a single cpu id or the whole
|
||||
* set. the size you get back when probing depends on what
|
||||
* Here you may either retrieve a single cpu id or the whole
|
||||
* set. The size you get back when probing depends on what
|
||||
* you ask for.
|
||||
*/
|
||||
switch (namelen) {
|
||||
|
@ -2568,7 +2568,7 @@ sysctl_kern_cpid(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for hw.usermem and hw.usermem64. values are
|
||||
* sysctl helper routine for hw.usermem and hw.usermem64. Values are
|
||||
* calculate on the fly taking into account integer overflow and the
|
||||
* current wired count.
|
||||
*/
|
||||
|
@ -2600,7 +2600,7 @@ sysctl_hw_usermem(SYSCTLFN_ARGS)
|
|||
}
|
||||
|
||||
/*
|
||||
* sysctl helper routine for kern.cnmagic node. pulls the old value
|
||||
* sysctl helper routine for kern.cnmagic node. Pulls the old value
|
||||
* out, encoded, and stuffs the new value in for decoding.
|
||||
*/
|
||||
static int
|
||||
|
@ -2645,7 +2645,7 @@ sysctl_root_device(SYSCTLFN_ARGS)
|
|||
|
||||
/*
|
||||
* sysctl helper routine for kern.consdev, dependent on the current
|
||||
* state of the console. also used for machdep.console_device on some
|
||||
* state of the console. Also used for machdep.console_device on some
|
||||
* ports.
|
||||
*/
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue