]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
These patches implement dynamic sysctls. It's possible now to add
authorabial <abial@FreeBSD.org>
Sat, 15 Jul 2000 10:26:04 +0000 (10:26 +0000)
committerabial <abial@FreeBSD.org>
Sat, 15 Jul 2000 10:26:04 +0000 (10:26 +0000)
commitc7bf2569fa53882ac3f6a6d420425de0c7f8a490
treef296f4156d4f32d397b59fa2297d1fc077e7b275
parentba6bef6211a46c4c72c4df1b86bfb8b591437184
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