[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dmidecode] [PATCH V2 0/4] sysfs DMI table support

From: Roy Franz
Subject: [dmidecode] [PATCH V2 0/4] sysfs DMI table support
Date: Fri, 17 Apr 2015 11:36:29 -0700

This patchset adds support for reading SMBIOS entry points
and tables from the /sys/firmware/dmi/tables directory.  This
removes the dependency on a readable /dev/mem file for decoding the
SMBIOS information for a platform.  Output from dmidecode is slightly
changed by patch 3:
- Messages indicating which source is used for the tables
  have been added.  These are printed before the tables have
  been validated so they can go at the top of the output.  This
  also shows what methods have been tried and failed due invalid
- the address of the entrypoint is not known when read from sysfs,
  so it is not printed.

This patchset does not add support for processing the 64 bit SMBIOS
v3.0 entry point.

Changes from V1:
* for read_file(), change len to max_len, and only suppress
  ENOENT error prints.
* Use flag instead of addtional address passed to dmi_table()
  to indicate there is no file offset.
* Conditionalize prints on quiet flag
* remove short option from --no-sysfs
* add man page for sysfs support, and for --no-sysfs options
* Various minor changes: commit/comment cleanups, no else
  after goto, moved comment change to correct patch.

Roy Franz (4):
  add read_file() function for reading sysfs files
  Add passing of flags parameter to dmi_table()
  Add reading of SMBIOS tables from sysfs
  Add --no-sysfs option to disable use of sysfs

 dmidecode.c     | 70 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 dmiopt.c        |  4 ++++
 dmiopt.h        |  1 +
 man/dmidecode.8 | 14 ++++++++++--
 util.c          | 50 +++++++++++++++++++++++++++++++++++++++++
 util.h          |  1 +
 6 files changed, 127 insertions(+), 13 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]