Displaying 2 results from an estimated 2 matches for "s_processor".
Did you mean:
_processor
2006 Aug 14
0
First attempt to use DMI in a com32 module
...able.
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.type will return one of theses decribes by the...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...pushstring(L, "chassis.manufacturer");
- lua_pushstring(L, dmi.chassis.manufacturer);
- lua_settable(L,-3);
- lua_pushstring(L, "chassis.type");
- lua_pushstring(L, dmi.chassis.type);
- lua_settable(L,-3);
+static int get_processor_table(lua_State *L, s_dmi *dmi_ptr)
+{
+ s_processor *processor = &dmi_ptr->processor;
+ s_signature *signature = &processor->signature;
- lua_pushstring(L, "chassis.lock");
- lua_pushstring(L, dmi.chassis.lock);
+ if (!processor->filled)
+ return 0;
+ /* processor */
+ lua_newtable(L);
+ LUA_ADD_STR_P(L, process...