]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
These patches implement dynamic sysctls. It's possible now to add
authorAndrzej Bialecki <abial@FreeBSD.org>
Sat, 15 Jul 2000 10:26:04 +0000 (10:26 +0000)
committerAndrzej Bialecki <abial@FreeBSD.org>
Sat, 15 Jul 2000 10:26:04 +0000 (10:26 +0000)
commitbd3cdc3105aaed624b5933269218e0a448781b61
treed417a29249a083fb0b3f44620c1a02318842c717
parent65594d9e65ee7762c7e5ccbaa2017473c72f80cc
These patches implement dynamic sysctls. It's possible now to add
and remove sysctl oids at will during runtime - they don't rely on
linker sets. Also, the node oids can be referenced by more than
one kernel user, which means that it's possible to create partially
overlapping trees.

Add sysctl contexts to help programmers manage multiple dynamic
oids in convenient way.

Please see the manpages for detailed discussion, and example module
for typical use.

This work is based on ideas and code snippets coming from many
people, among them:  Arun Sharma, Jonathan Lemon, Doug Rabson,
Brian Feldman, Kelly Yancey, Poul-Henning Kamp and others. I'd like
to specially thank Brian Feldman for detailed review and style
fixes.

PR: kern/16928
Reviewed by: dfr, green, phk
share/examples/kld/Makefile
share/examples/kld/dyn_sysctl/Makefile [new file with mode: 0644]
share/examples/kld/dyn_sysctl/README [new file with mode: 0644]
share/examples/kld/dyn_sysctl/dyn_sysctl.c [new file with mode: 0644]
share/man/man9/Makefile
share/man/man9/sysctl_add_oid.9 [new file with mode: 0644]
share/man/man9/sysctl_ctx_init.9 [new file with mode: 0644]
sys/kern/kern_sysctl.c
sys/sys/sysctl.h