sysctl: Give each device its own context and subtree
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 16 Nov 2014 11:35:45 +0000 (12:35 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 16 Nov 2014 11:56:12 +0000 (12:56 +0100)
commit8e4d13764bdfc916c23fb22158c65e486dce631c
treec70f4dfd055bab2d02c8e9fd8c58c33da1217eaa
parent050a6d49248024cfa4717fca3b065fdde7f3878b
sysctl: Give each device its own context and subtree

* Add device_get_sysctl_ctx() and device_get_sysctl_tree() functions

* All devices now have an associated sysctl tree under the "dev" root

Obtained-from: FreeBSD
sys/kern/subr_bus.c
sys/sys/bus.h
sys/sys/bus_private.h