dmi_entity_data
Synopsis
#include <opendmi/entity.h>
const void *dmi_entity_data(const dmi_entity_t *entity, const dmi_type_t *type);
Description
The dmi_entity_data function returns a pointer to the raw SMBIOS structure
data, including the structure header. The entity type is verified against the
expected type parameter before returning the data.
The type is the structure type of the specification the structure is decoded
by, see dmi_type, rather than the number the structure is found at. Some
vendors place structures defined by others at type numbers of their own, e.g.
Dell moves Intel reference code structures 16 types down, and such a structure
is still of the type of its original specification, since its data is laid out
as that type expects, while dmi_entity_type_id returns the type number
found in the table. Structures of different types sharing a type number, e.g.
Intel vPro information and Lenovo ThinkVantage Technologies enablement, are
told apart, so the pointer returned is always of the C type of type.