summaryrefslogtreecommitdiff
path: root/dmioem.h
diff options
context:
space:
mode:
authorkhali <khali>2015-04-21 07:11:14 +0000
committerkhali <khali>2015-04-21 07:11:14 +0000
commit5b0396acbcb739f6e1437baf1ba96cf73557b5d4 (patch)
tree981e85139b0009e11f5096274aef9c834650b642 /dmioem.h
parentb4f32bd3341060d1ee2b3424e9e73b679299a98b (diff)
downloaddmidecode-5b0396acbcb739f6e1437baf1ba96cf73557b5d4.tar.gz
dmidecode: Add passing of flags parameter to dmi_table()
This allows dmi_table() to print the address that the table was read from, even when reading from a sysfs file. Previous to sysfs support, the address of the table was always the same as the offset within the file it was read from (usually /dev/mem.) For sysfs files that contain just the table at offset 0, we still want to pass the address and display that as normal, but read from offset 0 in the file. If the flag FLAG_NO_FILE_OFFSET is passed, dmi_table() uses 'base' as the DMI table address for display, but uses 0 as the file offset. Contributed by Roy Franz.
Diffstat (limited to 'dmioem.h')
0 files changed, 0 insertions, 0 deletions