Page MenuHomeFreeBSD

efitable: Don't assume EFI GUID are uuid_t
ClosedPublic

Authored by imp on Apr 25 2025, 7:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 6, 7:14 PM
Unknown Object (File)
Sun, Apr 5, 9:30 PM
Unknown Object (File)
Fri, Apr 3, 5:10 PM
Unknown Object (File)
Sat, Mar 28, 12:26 AM
Unknown Object (File)
Fri, Mar 27, 6:51 PM
Unknown Object (File)
Sat, Mar 14, 2:46 PM
Unknown Object (File)
Wed, Mar 11, 2:11 PM
Unknown Object (File)
Wed, Mar 11, 5:31 AM
Subscribers
None

Details

Summary

To share code better with EDK2, we need to align our interfaces with its
definition of EFI_GUID. This structure is the same size as our uuid_t,
but has different elements. The EFI standard uses a string notaiton that
are compatible with the uuid_* routines, however. So we use those
routies to parse, but need to b careful to cast as appropriate. Becuas
the ABI is the same, this is safe, though perhaps suboptimal. These
changes make efitable API neutral.

Sponsored by: Netflix

Diff Detail

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