diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2019-01-29 14:07:16 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2019-01-29 14:07:16 +0000 |
commit | 363328cec784cefd433e9c015be27e5f5795c2b6 (patch) | |
tree | b059481c1a50943b9bc3b899fcc8d3e6e4201bc4 /lib | |
parent | 4e707279c62597eb97b9afb403ab402a8ad0e907 (diff) |
Add a dedicated sysctl(2) node for witness(4).
The new node contains the subsystem's main control variable,
kern.witness.watch. It is aliased by the old name, kern.witnesswatch.
The alias will be removed in the future.
OK anton@ mpi@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/sysctl.2 | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/libc/sys/sysctl.2 b/lib/libc/sys/sysctl.2 index 733bb8c6f0b..084009dee79 100644 --- a/lib/libc/sys/sysctl.2 +++ b/lib/libc/sys/sysctl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysctl.2,v 1.20 2019/01/22 00:04:26 ajacoutot Exp $ +.\" $OpenBSD: sysctl.2,v 1.21 2019/01/29 14:07:15 visa Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: January 22 2019 $ +.Dd $Mdocdate: January 29 2019 $ .Dt SYSCTL 2 .Os .Sh NAME @@ -489,7 +489,7 @@ information. .It Dv KERN_TTYCOUNT Ta "integer" Ta "no" .It Dv KERN_VERSION Ta "string" Ta "no" .It Dv KERN_WATCHDOG Ta "node" Ta "not applicable" -.It Dv KERN_WITNESSWATCH Ta "integer" Ta "yes" +.It Dv KERN_WITNESS Ta "node" Ta "not applicable" .It Dv KERN_WXABORT Ta "integer" Ta "yes" .El .Bl -tag -width "123456" @@ -1102,7 +1102,17 @@ variable. The period of the watchdog timer in seconds. Set to 0 to disable the watchdog timer. .El -.It Dv KERN_WITNESSWATCH Pq Va kern.witnesswatch +.It Dv KERN_WITNESS Pq Va kern.witness +Control settings of +.Xr witness 4 . +.Bl -column "KERN_WITNESS_WATCH" "integer" "Changeable" -offset indent +.It Sy "Third level name" Ta Sy "Type" Ta Sy "Changeable" +.It Dv KERN_WITNESS_WATCH Ta "integer" Ta "yes" +.El +.Pp +The variables are as follows: +.Bl -tag -width "123456" +.It Dv KERN_WITNESS_WATCH Pq Va kern.witness.watch Control how .Xr witness 4 behaves on error. @@ -1124,6 +1134,7 @@ and a stack trace if possible. .It 3 The same as 2, but also drop into the kernel debugger. .El +.El .It Dv KERN_WXABORT Pq Va kern.wxabort Generate an abort, rather than returning an error, |