get DMI information in kernel

Stefan Bethke stb at lassitu.de
Tue Aug 22 19:22:50 UTC 2006


Am 22.08.2006 um 14:45 schrieb m.ehinger at ltur.de:

> How do i get DMI Informations (stuff displayed by dmidecode) in a  
> kernel module? I need some "System Information" like Vendor,Model  
> and OEM String identifying hardware on a Thinkpad.

kenv(2) has smbios entries; they're available through getenv() and  
getenv_<type>() in the kernel.  See http://www.freebsd.org/cgi/ 
cvsweb.cgi/src/sys/boot/i386/libi386/smbios.c for the history.


Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 170 346 0140




More information about the freebsd-hackers mailing list