]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
hw.bus.info: rework handler
authorkaktus <kaktus@FreeBSD.org>
Thu, 18 Jun 2020 21:42:54 +0000 (21:42 +0000)
committerkaktus <kaktus@FreeBSD.org>
Thu, 18 Jun 2020 21:42:54 +0000 (21:42 +0000)
commitdafdf7879b1f3d4ba1f5de3d667f399a45c6dd7e
tree470e4ba55388e42ca46068c0fd4034ef63d94662
parent00d3dff5885a318c5b95781aac0bcf09dfd0ac41
hw.bus.info: rework handler

hw.bus.info was added in r68522 as a node, but there was never anything
connected "behind" it.  Its only purpose is to return a struct u_businfo.
The only in-base consumer are devinfo(3)/devinfo(8).
Rewrite the handler as SYSCTL_PROC and mark it as MPSAFE and read-only
as there never was a writable path.

Reviewed by: kib
Approved by: kib (mentor)
Sponsored by: Mysterious Code Ltd.
Differential Revision: https://reviews.freebsd.org/D25321
sys/kern/subr_bus.c
sys/sys/sysctl.h