Displaying 2 results from an estimated 2 matches for "s_system".
Did you mean:
r_system
2006 Aug 14
0
First attempt to use DMI in a com32 module
...structure with the elements founds in
the table.
And.... that's all ;)
So the following code is enough :
s_dmi dmi;
if (dmi_iterate()) parse_dmitable(&dmi);
Simple isn't it ?
Then, if you like to access to the elements, you just have to print them.
The s_dmi structure contains some s_system, s_bios, s_chassis,
s_base_board, s_processor structures.
They represent the content of the DMI HANDLES number 0,1,2,3,4. I was
too lazy to continue to the remaining items. Maybe later if they are
really needed in pxelinux.
So if you like to know the form factor of the running system,
dmi.chassis....
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...lua_pushstring(L, "bios.rom_size");
- lua_pushnumber(L, dmi.bios.rom_size);
- lua_settable(L,-3);
- lua_pushstring(L, "bios.rom_size_unit");
- lua_pushstring(L, dmi.bios.rom_size_unit);
- lua_settable(L,-3);
+static int get_system_table(lua_State *L, s_dmi *dmi_ptr)
+{
+ s_system *system = &dmi_ptr->system;
+ if (!system->filled)
+ return 0;
/* system */
- lua_pushstring(L, "system.manufacturer");
- lua_pushstring(L, dmi.system.manufacturer);
- lua_settable(L,-3);
-
- lua_pushstring(L, "system.product_name");
- lua_pushstring(L, dm...