Commit graph

6 commits

Author SHA1 Message Date
Ed Maste f40cd16bfd kern: Move devctl_systems[] out of sys/sys/devctl.h
The amd64-gcc12 build was failing with `error: 'devctl_systems' defined
but not used`.  Just move it to the C file where it's used.

PR:		271903
Sponsored by:	The FreeBSD Foundation
2023-06-08 12:28:04 -04:00
Baptiste Daroussin 9908461193 nlsysevent: add default command to the events 2023-06-02 14:22:10 +02:00
Baptiste Daroussin 0bcb3ebd1f nlsysevent: deduplicate the code and split into smaller functions
No functional changes intended

Suggested by:	melifaro
2023-06-02 10:19:27 +02:00
Baptiste Daroussin 3f9c093dfe nlsysevent: rename variables for clarity of the code
Suggested by:	melifaro
2023-06-02 10:04:49 +02:00
Baptiste Daroussin cef0bbae37 nlsysevent: specify all netlink header the same way 2023-06-02 09:55:42 +02:00
Baptiste Daroussin 8a2af0b469 nlsysevent: add a genetlink(4) module to report kernel events
Hooked to devctl_notify, this allows consumers to received events
by subscribing to a system over a generic netlink protocol

Reviewed by:	imp, melifaro
Differential Revision:	https://reviews.freebsd.org/D37574
2023-06-01 23:02:06 +02:00