Page MenuHomeFreeBSD

bus: Provide 32-bit compatibility
Needs ReviewPublic

Authored by des on Jan 30 2026, 11:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 2, 1:32 PM
Unknown Object (File)
Tue, Sep 29, 5:06 PM
Unknown Object (File)
Tue, Sep 29, 4:28 PM
Unknown Object (File)
Mon, Sep 28, 3:08 PM
Unknown Object (File)
Sun, Sep 27, 2:47 PM
Unknown Object (File)
Sun, Sep 27, 7:25 AM
Unknown Object (File)
Wed, Sep 23, 11:07 PM
Unknown Object (File)
Thu, Sep 17, 4:33 PM
Subscribers

Details

Reviewers
kib
Summary

Implement 32-bit compatibility for hw.bus.devices and hw.bus.rman.
This allows a 32-bit devinfo(8) to work on a 64-bit kernel.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70229
Build 67112: arc lint + arc unit

Event Timeline

des requested review of this revision.Jan 30 2026, 11:44 AM
sys/kern/subr_bus.c
5589

Why ignoring the error?
I believe even SBUF_FIXEDLEN would get into an error state on overflow of the buffer.

sys/kern/subr_rman.c
1031

IMO it is worth extracting the same code into a small helper function and calling it twice, instead of copying.

1052

There should be a blank line after the local variables block. There and in several other places in the patch.