lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Type 10: On Board Devices Information Guide

Legacy onboard-device type, enablement, and description information.

Result set and ownership

lazybiosGetType10 returns a lazybiosType10Array_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 lazybiosFreeType10, or assign it to ctx->Type10 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 (device_status, device_type). The raw value stays alongside it, so both the encoding and its meaning are available.

Structures and device entries

lazybiosGetType10 returns every Type 10 structure and writes the number result set. Each formatted structure contains zero or more two-byte device entries. device_count is derived from the formatted length, and every entry owns its decoded description string.

Device type and status

Bit 7 of device_type_and_status indicates whether the device is enabled; bits 6:0 identify its type. Decode these fields with decoded.device_status and decoded.device_type.

Ownership

Release every structure, device array, and description string with lazybiosFreeType10, or assign the result to lazybiosCTX::Type10 and use lazybiosCleanup.

See also
Type 10: On Board Devices Information (Obsolete)