svn commit: r358548 - head/sys/kern
Pawel Biernacki
kaktus at FreeBSD.org
Mon Mar 2 15:30:55 UTC 2020
Author: kaktus
Date: Mon Mar 2 15:30:52 2020
New Revision: 358548
URL: https://svnweb.freebsd.org/changeset/base/358548
Log:
sys/: Document few more sysctls.
Submitted by: Antranig Vartanian <antranigv at freebsd.am>
Reviewed by: kaktus
Commented by: jhb
Approved by: kib (mentor)
Sponsored by: illuria security
Differential Revision: https://reviews.freebsd.org/D23759
Modified:
head/sys/kern/kern_exec.c
head/sys/kern/kern_shutdown.c
head/sys/kern/kern_synch.c
head/sys/kern/kern_umtx.c
head/sys/kern/sched_4bsd.c
head/sys/kern/sched_ule.c
head/sys/kern/subr_kobj.c
Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/kern_exec.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -123,18 +123,22 @@ static int do_execve(struct thread *td, struct image_a
/* XXX This should be vm_size_t. */
SYSCTL_PROC(_kern, KERN_PS_STRINGS, ps_strings, CTLTYPE_ULONG|CTLFLAG_RD|
- CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_ps_strings, "LU", "");
+ CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_ps_strings, "LU",
+ "Location of process' ps_strings structure");
/* XXX This should be vm_size_t. */
SYSCTL_PROC(_kern, KERN_USRSTACK, usrstack, CTLTYPE_ULONG|CTLFLAG_RD|
- CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_usrstack, "LU", "");
+ CTLFLAG_CAPRD|CTLFLAG_MPSAFE, NULL, 0, sysctl_kern_usrstack, "LU",
+ "Top of process stack");
SYSCTL_PROC(_kern, OID_AUTO, stackprot, CTLTYPE_INT|CTLFLAG_RD|CTLFLAG_MPSAFE,
- NULL, 0, sysctl_kern_stackprot, "I", "");
+ NULL, 0, sysctl_kern_stackprot, "I",
+ "Stack memory permissions");
u_long ps_arg_cache_limit = PAGE_SIZE / 16;
SYSCTL_ULONG(_kern, OID_AUTO, ps_arg_cache_limit, CTLFLAG_RW,
- &ps_arg_cache_limit, 0, "");
+ &ps_arg_cache_limit, 0,
+ "Process' command line characters cache limit");
static int disallow_high_osrel;
SYSCTL_INT(_kern, OID_AUTO, disallow_high_osrel, CTLFLAG_RW,
Modified: head/sys/kern/kern_shutdown.c
==============================================================================
--- head/sys/kern/kern_shutdown.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/kern_shutdown.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -167,7 +167,8 @@ static int show_busybufs;
static int show_busybufs = 1;
#endif
SYSCTL_INT(_kern_shutdown, OID_AUTO, show_busybufs, CTLFLAG_RW,
- &show_busybufs, 0, "");
+ &show_busybufs, 0,
+ "Show busy buffers during shutdown");
int suspend_blocked = 0;
SYSCTL_INT(_kern, OID_AUTO, suspend_blocked, CTLFLAG_RW,
Modified: head/sys/kern/kern_synch.c
==============================================================================
--- head/sys/kern/kern_synch.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/kern_synch.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -94,7 +94,8 @@ static fixpt_t cexp[3] = {
};
/* kernel uses `FSCALE', userland (SHOULD) use kern.fscale */
-SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE, "");
+SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, FSCALE,
+ "Fixed-point scale factor used for calculating load average values");
static void loadav(void *arg);
Modified: head/sys/kern/kern_umtx.c
==============================================================================
--- head/sys/kern/kern_umtx.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/kern_umtx.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -240,7 +240,7 @@ SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_vnode_persistent,
static int umtx_max_rb = 1000;
SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_max_robust, CTLFLAG_RWTUN,
&umtx_max_rb, 0,
- "");
+ "Maximum number of robust mutexes allowed for each thread");
static uma_zone_t umtx_pi_zone;
static struct umtxq_chain umtxq_chains[2][UMTX_CHAINS];
Modified: head/sys/kern/sched_4bsd.c
==============================================================================
--- head/sys/kern/sched_4bsd.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/sched_4bsd.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -437,7 +437,8 @@ maybe_preempt(struct thread *td)
/* decay 95% of `ts_pctcpu' in 60 seconds; see CCPU_SHIFT before changing */
static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */
-SYSCTL_UINT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
+SYSCTL_UINT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0,
+ "Decay factor used for updating %CPU");
/*
* If `ccpu' is not equal to `exp(-1/20)' and you still want to use the
Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/sched_ule.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -3128,4 +3128,5 @@ SYSCTL_PROC(_kern_sched, OID_AUTO, topology_spec, CTLT
/* ps compat. All cpu percentages from ULE are weighted. */
static int ccpu = 0;
-SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
+SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0,
+ "Decay factor used for updating %CPU in 4BSD scheduler");
Modified: head/sys/kern/subr_kobj.c
==============================================================================
--- head/sys/kern/subr_kobj.c Mon Mar 2 14:36:15 2020 (r358547)
+++ head/sys/kern/subr_kobj.c Mon Mar 2 15:30:52 2020 (r358548)
@@ -67,7 +67,8 @@ static int kobj_next_id = 1;
#define KOBJ_ASSERT(what) mtx_assert(&kobj_mtx, what);
SYSCTL_INT(_kern, OID_AUTO, kobj_methodcount, CTLFLAG_RD,
- &kobj_next_id, 0, "");
+ &kobj_next_id, 0,
+ "Number of kernel object methods registered");
static void
kobj_init_mutex(void *arg)
More information about the svn-src-head
mailing list