Provide documentation for KERN_LWP.

PR lib/20108
This commit is contained in:
maya 2019-08-05 22:03:10 +00:00
parent 95ce9a69b4
commit ba1beab6cb
1 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sysctl.7,v 1.139 2019/06/01 19:54:34 kamil Exp $
.\" $NetBSD: sysctl.7,v 1.140 2019/08/05 22:03:10 maya Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@ -29,7 +29,7 @@
.\"
.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
.\"
.Dd June 1, 2019
.Dd August 6, 2019
.Dt SYSCTL 7
.Os
.Sh NAME
@ -308,6 +308,7 @@ privilege may change the value.
.It kern.labelsector integer no
.It kern.login_name_max integer no
.It kern.logsigexit integer yes
.It kern.lwp struct kinfo_lwp yes
.It kern.mapped_files integer no
.It kern.maxfiles integer yes
.It kern.maxlwp integer yes
@ -727,6 +728,12 @@ If this flag is non-zero, the kernel will
all process exits due to signals which create a
.Xr core 5
file, and whether the coredump was created.
.It Li kern.lwp ( Dv KERN_LWP )
Returns information about the current light-weight process.
The
.Sy kinfo_lwp
structure is defined in
.In sys/sysctl.h .
.It Li kern.mapped_files ( Dv KERN_MAPPED_FILES )
Returns 1 if the
.St -p1003.1b-93
@ -1347,7 +1354,6 @@ Each element of the array contains the kernel address of a vnode
.Vt struct vnode *
followed by the vnode itself
.Vt struct vnode .
.\" XXX: Undocumented: kern.lwp: no children?
.El
.Ss The machdep.* subtree
The set of variables defined is architecture dependent.