freebsd-src/lib/libdevinfo
John Baldwin 7554746c43 libdevinfo: Avoid false positives for the root0 sentinel value
Previously, a NULL pointer value was used to request the root0 device
at the top of the device tree.  However, this meant that resource
ranges from a rman with a NULL device pointer were annotated as being
owned by root0 instead of being unowned.  Switch to a different value
for root0's sentinel to avoid the clash.

Since this is an ABI change, bump the SHLIB_MAJOR for libdevinfo to 7.

Reported by:	jrtc27
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D48675
2025-01-29 10:03:59 -05:00
..
devinfo.3 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
devinfo.c libdevinfo: Avoid false positives for the root0 sentinel value 2025-01-29 10:03:59 -05:00
devinfo.h libdevinfo: Avoid false positives for the root0 sentinel value 2025-01-29 10:03:59 -05:00
devinfo_var.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile libdevinfo: Avoid false positives for the root0 sentinel value 2025-01-29 10:03:59 -05:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00