HomeFreeBSD

devstat: Provide 32-bit compatibility

Description

devstat: Provide 32-bit compatibility

If a 32-bit process running on a 64-bit kernel requests kern.devstat.all,
translate each struct devstat to its 32-bit equivalent before copying it
out.

Also fix a bug where an early error would be ignored if there were no
devices to report.

MFC after: 1 week
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D54591

Details

Provenance
desAuthored on Jan 26 2026, 12:01 PM
Reviewer
kib
Differential Revision
D54591: devstat: Provide 32-bit compatibility
Parents
rGc29e05113c00: hpt: remove unnecessary macro expansion hacks
Branches
Unknown
Tags
Unknown