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

Danny Kukawka danny.kukawka at web.de
Tue Nov 13 11:37:17 PST 2007


On Dienstag, 13. November 2007, Kay Sievers wrote:
> 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/*.

Okay, I change it before the commit to /sys/class/dmi/id.

Danny



More information about the hal mailing list