[PATCH] read dmi info from sysfs instead of call dmidecode

Kay Sievers kay.sievers at vrfy.org
Tue Nov 13 11:30:34 PST 2007


On Nov 13, 2007 8:08 PM, Danny Kukawka <danny.kukawka at web.de> wrote:
> this patch makes HAL to read dmi/smbios information on Linux from sysfs
> (/sys/devices/virtual/dmi/id) instead of use a prober to call and parse
> dmidecode.

You can't jump into sysfs with a /sys/devices/* path, that is not
expected to be stable across kernel releases, and the location of this
information can even change at runtime for some devices. You need to
use the path starting with /sys/class/dmi/*.

Kay


More information about the hal mailing list