sys/: Document few more sysctls.
Submitted by: Antranig Vartanian <antranigv@freebsd.am> Reviewed by: kaktus Commented by: jhb Approved by: kib (mentor) Sponsored by: illuria security Differential Revision: https://reviews.freebsd.org/D23759
This commit is contained in:
parent
80b9f30590
commit
b05ca4290c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358548
@ -123,18 +123,22 @@ static int do_execve(struct thread *td, struct image_args *args,
|
||||
|
||||
/* 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,
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
@ -240,7 +240,7 @@ SYSCTL_INT(_kern_ipc, OID_AUTO, umtx_vnode_persistent, CTLFLAG_RWTUN,
|
||||
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];
|
||||
|
@ -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
|
||||
|
@ -3128,4 +3128,5 @@ SYSCTL_PROC(_kern_sched, OID_AUTO, topology_spec, CTLTYPE_STRING |
|
||||
|
||||
/* 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");
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user