diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2022-11-07 14:25:45 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2022-11-07 14:25:45 +0000 |
commit | a4caaf1da89425cb4f34c560a3196c84b8e11459 (patch) | |
tree | 277b68a3e16b4d9e6985d09372a441c2a87a9a59 /sys/kern/kern_sysctl.c | |
parent | d797fdb68ca9b59a1b715b466fa8efba0a219363 (diff) |
introduce a new kern.autoconf_serial sysctl that can be used by userland
to monitor state changes of the kernel device tree
input from dnd ok dlg@, deraadt@
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index abf9cf0ded7..ff42ebb5129 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.407 2022/11/05 19:29:46 cheloha Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.408 2022/11/07 14:25:44 robert Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -126,6 +126,7 @@ extern long numvnodes; extern int allowdt; extern int audio_record_enable; extern int video_record_enable; +extern int autoconf_serial; int allowkmem; @@ -341,6 +342,7 @@ const struct sysctl_bounded_args kern_vars[] = { #ifdef PTRACE {KERN_GLOBAL_PTRACE, &global_ptrace, 0, 1}, #endif + {KERN_AUTOCONF_SERIAL, &autoconf_serial, SYSCTL_INT_READONLY}, }; int |