search for: parse_dmit

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

Did you mean: parse_bit
2006 Aug 14
0
First attempt to use DMI in a com32 module
...mi_utils.c Just a small util file to display some more complicated messages dmitest.c The program that show how to use the dmi inside a com32 module. The way the API works : dmi_interate() tells if a DMI table is present or not. s_dmi is the structure that contains the dmi informations. parse_dmitable(&dmi) fills a dmi 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_d...
2012 Sep 19
1
[PATCH 1/1] lua: Cleaned up the dmi table structure in Lua.c32 and added all missing DMI subtables
...ewtable(L); - - if ( ! dmi_iterate(&dmi) ) { - printf("No DMI Structure found\n"); - return -1; + if (get_table_fn(L, dmi_ptr)) { /* only adding it when it is there */ + lua_pushstring(L, table_name); + lua_insert(L, -2); + lua_settable(L,-3); } +} - parse_dmitable(&dmi); - - /* bios */ - lua_pushstring(L, "bios.vendor"); - lua_pushstring(L, dmi.bios.vendor); - lua_settable(L,-3); - - lua_pushstring(L, "bios.version"); - lua_pushstring(L, dmi.bios.version); - lua_settable(L,-3); - - lua_pushstring(L, "bios.release_date...