HomeFreeBSD

stand: Move i386_devdesc to a union

Description

stand: Move i386_devdesc to a union

Rather than have the magic, hand-crafted fields that have to align with
fields in other structures at the end of i386_devdesc, make it into
anonymous union and adjust the code accordingly. This is safer and
similar to what CAM does.

Sponsored by: Netflix
Reviewed by: kevans, tsoome (prior version)
Differential Revision: https://reviews.freebsd.org/D35965

Details

Provenance
impAuthored on Aug 11 2022, 3:04 PM
Reviewer
kevans
Differential Revision
D35965: stand: Move i386_devdesc to a union
Parents
rGbec11d96318b: stand: Remove unnecessary include
Branches
Unknown
Tags
Unknown