Module Name: src
Committed By: maya
Date: Mon Aug 5 22:03:10 UTC 2019
Modified Files:
src/share/man/man7: sysctl.7
Log Message:
Provide documentation for KERN_LWP.
PR lib/20108
To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/share/man/man7/sysctl.7
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man7/sysctl.7
diff -u src/share/man/man7/sysctl.7:1.139 src/share/man/man7/sysctl.7:1.140
--- src/share/man/man7/sysctl.7:1.139 Sat Jun 1 19:54:34 2019
+++ src/share/man/man7/sysctl.7 Mon Aug 5 22:03:10 2019
@@ -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 wil
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 k
.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.