lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
Type 41: Onboard Devices Extended Information Guide

Onboard-device identity, status, instance, and bus location.

Result set and ownership

lazybiosGetType41 returns a lazybiosType41Array_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 lazybiosFreeType41, or assign it to ctx->Type41 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.

Device identity

reference_designation normally contains the board silkscreen label. Decode device_type_and_status with decoded.device_type and decoded.device_status. device_type_instance identifies the ordering of devices that have the same onboard-device type.

Bus location

PCI-family devices provide a segment group, bus number, and packed device and function number. Use decoded.device_function_number for the packed byte. Devices without applicable PCI bus information use the specification's all-ones encodings; these values are preserved as present data and decode as not applicable where supported.

Ownership

Release the returned array and reference-designation strings with lazybiosFreeType41, or assign it to lazybiosCTX::Type41 and use lazybiosCleanup.

See also
Type 41: Onboard Devices Extended Information