lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Type 32: System Boot Information Guide

System boot result codes and status-specific additional data.

Result set and ownership

lazybiosGetType32 returns a lazybiosType32Array_t holding every matching structure. Iterate entries using count. A non-NULL result whose count is zero means the table contains no structure of this type; NULL means the arguments were unusable or an allocation failed. Release the set with lazybiosFreeType32, or assign it to ctx->Type32 and let lazybiosCleanup own it.

Every record carries its own SMBIOS handle and the structure length the firmware reported.

Encoded fields are decoded during parsing into decoded, which mirrors the raw member names (boot_status). The raw value stays alongside it, so both the encoding and its meaning are available.

Boot status

boot_status identifies the reason or result of the previous system boot. Decode standard, reserved, vendor-specific, and product-specific values with decoded.boot_status.

Additional data

Status code 7 and reserved or implementation-specific status codes can carry additional bytes. additional_data_size reports their length and additional_data owns an exact copy. A present zero-length additional-data field has a size of zero and a NULL pointer.

Ownership

Release the returned array and its additional-data buffers with lazybiosFreeType32, or assign it to lazybiosCTX::Type32 and use lazybiosCleanup.

See also
Type 32: System Boot Information