search for: s_chassis

Displaying 2 results from an estimated 2 matches for "s_chassis".

Did you mean: chassis
2006 Aug 14
0
First attempt to use DMI in a com32 module
...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.type will return on...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...ng(L, "base_board.serial"); - lua_pushstring(L, dmi.base_board.serial); - lua_settable(L,-3); - lua_pushstring(L, "base_board.asset_tag"); - lua_pushstring(L, dmi.base_board.asset_tag); - lua_settable(L,-3); +static int get_chassis_table(lua_State *L, s_dmi *dmi_ptr) +{ + s_chassis *chassis = &dmi_ptr->chassis; - lua_pushstring(L, "base_board.location"); - lua_pushstring(L, dmi.base_board.location); - lua_settable(L,-3); + if (!chassis->filled) + return 0; + /* chassis */ + lua_newtable(L); + LUA_ADD_STR_P(L, chassis, manufacturer) + LUA_ADD_ST...