mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
bd3cdc3105
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
9 lines
321 B
Plaintext
9 lines
321 B
Plaintext
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$
|