dmi_find_device(9)
π dmi_find_device(9) π
okay so bestie, welcome to the Kernel API Manual β this is the dmi_find_device(9) page, and it's literally about finding an onboard device by type/name. Main character energy for firmware lookup, no cap. Let's get into it π
β¨ NAME β¨
dmi_find_device - find onboard device by type/name
πΈ SYNOPSIS πΈ
const struct dmi_device * dmi_find_device (int type , const char *name ,
const struct dmi_device *from );
π¦ ARGUMENTS π¦
typeβ device type, orDMI_DEV_TYPE_ANYto match, like, all device types.nameβ device name string, orNULLto match all.fromβ previous device found in search, orNULLfor a new search.
π DESCRIPTION π
So here's the vibe: it iterates through the list of known onboard devices. If a device is found with a matching type and name, you get back a pointer to its device structure. Otherwise, NULL is returned. A new search is initiated by passing NULL as the from argument. If from is not NULL, searches continue from the next device. π«
π SEE ALSO π
- Kernel file
./drivers/firmware/dmi_scan.c dmi_setup(9)dmi_matches(9)dmi_is_end_of_table(9)dmi_check_system(9)dmi_first_match(9)dmi_get_system_info(9)dmi_name_in_serial(9)dmi_name_in_vendors(9)dmi_get_date(9)dmi_get_bios_year(9)dmi_walk(9)dmi_match(9)dmi_memdev_type(9)dmi_memdev_handle(9)
mwah π that's the whole page, bestie. Source/version: ./drivers/firmware Β· date: October 2026. Now go be iconic with your DMI lookups π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms