diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2022-08-09 15:55:23 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2022-08-10 18:56:01 +0000 |
commit | 102e6817f0137231b6921dcdaa8c8fbae09b0386 (patch) | |
tree | d98d1787c6a030e425cc92096256330a819431c5 /sys/conf | |
parent | 5c4d2252d771ae226a7174b6bad279ffb2599798 (diff) | |
download | src-102e6817f0137231b6921dcdaa8c8fbae09b0386.tar.gz src-102e6817f0137231b6921dcdaa8c8fbae09b0386.zip |
devd: move all devd notification logic to a separate file.
Currently, subr_bus.c shares logic for (a) maintaining all HW devices
(e.g. discovery/attach/detach logic) and (b) generic devctl notification
layer for devices/PMU/GEOM/interfaces/etc).
These two subsystems share really tiny interaction interface, composed of 3
notification functions. With that in mind, move devctl layer to a
separate file, establishing a clear notification interface between the
sub.c bus layer and the provider (devctl).
The primary driver of this change is netlink implementation (D36002).
The idea is to propagate device-level events to netlink as well, so all
netlink customers can subscribe to these changes.
The long-term goal is to deprecate devctl and to use netlink as the
kernel<> userland transport provided netlink gets enough traction.
Reviewed by: imp, markj
Differential Revision: https://reviews.freebsd.org/D36091
MFC after: 1 month
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files b/sys/conf/files index b80ced0c8619..9b1ebc85a7ab 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -3778,6 +3778,7 @@ kern/kern_cpu.c standard kern/kern_cpuset.c standard kern/kern_context.c standard kern/kern_descrip.c standard +kern/kern_devctl.c standard kern/kern_dtrace.c optional kdtrace_hooks kern/kern_dump.c standard kern/kern_environment.c standard |