freebsd-skq/share/examples/kld/dyn_sysctl
Andrzej Bialecki bd3cdc3105 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
2000-07-15 10:26:04 +00:00
..
dyn_sysctl.c These patches implement dynamic sysctls. It's possible now to add 2000-07-15 10:26:04 +00:00
Makefile These patches implement dynamic sysctls. It's possible now to add 2000-07-15 10:26:04 +00:00
README These patches implement dynamic sysctls. It's possible now to add 2000-07-15 10:26:04 +00:00

This example module creates partially overlapping subtrees to demonstrate
reference counting. It also contains example of attaching a subtree to the
wrong place, i.e. to a dynamic oid that could belong to someone else.
The framework should deal with this case gracefully.

Andrzej Bialecki <abial@freebsd.org>

$FreeBSD$