Enumerations

enum StructType
Name Value
BiosInfo 0
SystemInfo 1
Baseboard 2
SystemEnclosure 3
Processor 4
MemoryController 5
MemoryModule 6
Cache 7
PortConnector 8
SystemSlots 9
OnBoardDevices 10
OemStrings 11
SystemConfigOptions 12
BiosLanguage 13
EndOfTable 127

Defined at line 28 of file ../../zircon/system/ulib/smbios/include/lib/smbios/smbios.h

enum EntryPointVersion
Name Value
Unknown 0
V2_1 1
V3_0 2

Defined at line 103 of file ../../zircon/system/ulib/smbios/include/lib/smbios/smbios.h

Records

Functions

  • bool smbios_product_name_is_valid (const char * product_name)

    Check if we consider the given product name to be valid.

    Defined at line 136 of file ../../src/devices/board/lib/smbios/smbios.cc

  • template <typename StructTypetypename FieldType>
    std::optional<FieldType> ReadOptionalField (const StructType * sFieldType StructType::* field)

    Safe accessor for fields which may be out of the bounds of a structure.

    Some SMBIOS structures can be truncated at several different points, and

    this allows users to safetly read them.

    StructType must refer to a structure with a member "hdr" of type "Header".

    Defined at line 344 of file ../../zircon/system/ulib/smbios/include/lib/smbios/smbios.h