]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move to using sbuf for some sysctl in newbus
authorWarner Losh <imp@FreeBSD.org>
Sat, 29 Aug 2020 04:30:12 +0000 (04:30 +0000)
committerWarner Losh <imp@FreeBSD.org>
Sat, 29 Aug 2020 04:30:12 +0000 (04:30 +0000)
commit17c219fd6f018b21d39de2623c533be2f507008e
tree6e1ebd409cbf26dd96cab560fe80277ffb2ef4c0
parent887611b1227c95b8d5588f920822435a7021fd2a
Move to using sbuf for some sysctl in newbus

Convert two different sysctl to using sbuf. First, for all the default
sysctls we implement for each device driver that's attached. This is a
pure sbuf conversion.

Second, convert sysctl_devices to fill its buffer with sbuf rather
than a hand-rolled crappy thing I wrote years ago.

Reviewed by: cem, markj
Differential Revision: https://reviews.freebsd.org/D26206
sys/kern/subr_bus.c