lazybios 3.0.0
Lightweight SMBIOS/DMI parsing library
Loading...
Searching...
No Matches
SMBIOS Entry Point Data

Raw SMBIOS 2.x and 3.x entry point representations. More...

Data Structures

struct  lazybiosDMI_t
 Owns raw DMI table data and its parsed SMBIOS entry point. More...
union  lazybiosDMI_t::[union].entry_union
struct  lazybiosSMBIOS2Entry
 Raw SMBIOS 2.x entry point layout. More...
struct  lazybiosSMBIOS3Entry
 Raw SMBIOS 3.x entry point layout. More...
struct  lazybiosTypeIndex_t
 Cached location and population count for one SMBIOS structure type. More...

Enumerations

enum  lazybiosSMBIOSVersionTag { SMBIOS_VER_UNKNOWN = 0 , SMBIOS_VER_2X , SMBIOS_VER_3X }
 Identifies the SMBIOS entry point layout stored in a DMI container. More...

Functions

int lazybiosIsVersionPlus (const lazybiosDMI_t *DMIData, uint8_t required_major, uint8_t required_minor)
 Tests whether the parsed SMBIOS version meets a minimum version.

Detailed Description

Raw SMBIOS 2.x and 3.x entry point representations.

Enumeration Type Documentation

◆ lazybiosSMBIOSVersionTag

#include <lazybios.h>

Identifies the SMBIOS entry point layout stored in a DMI container.

Enumerator
SMBIOS_VER_UNKNOWN 

No supported entry point has been parsed.

SMBIOS_VER_2X 

The SMBIOS 2.x entry point member is active.

SMBIOS_VER_3X 

The SMBIOS 3.x entry point member is active.

Definition at line 208 of file lazybios.h.

Function Documentation

◆ lazybiosIsVersionPlus()

int lazybiosIsVersionPlus ( const lazybiosDMI_t * DMIData,
uint8_t required_major,
uint8_t required_minor )

#include <lazybios.h>

Tests whether the parsed SMBIOS version meets a minimum version.

Parameters
DMIDataRaw DMI table container with a parsed SMBIOS entry point.
required_majorRequired SMBIOS major version.
required_minorRequired SMBIOS minor version.
Returns
Nonzero when the parsed version is equal to or newer than the required version; otherwise zero.

References lazybiosIsVersionPlus().

Referenced by lazybiosIsVersionPlus().