dmi_check_system(9)
π dmi_check_system(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for dmi_check_system, and honestly? it's giving "quiet little function that knows everything about your machine." let's get into it π«Ά
β¨ NAME β¨
dmi_check_system β check system DMI data πΈ
β¨ SYNOPSIS β¨
int dmi_check_system (const struct dmi_system_id *list );
β¨ ARGUMENTS β¨
listβ the array ofdmi_system_idstructures you're matching against π
okay so about that list, this is the important bit, don't skip it: all non-null elements of the list have to match their slot's (that's the field index's) data for it to count as a successful match. and "match" here means each list string must be a substring of the specified DMI slot's string data. so, yeah β substring, not equality. no cap. β
β¨ DESCRIPTION β¨
so what actually happens? we walk the blacklist table, running the matching functions, until someone returns non zero β or until we hit the end. π
the callback function gets called for each successful match, and the function returns the number of matches. simple, iconic, does exactly what it says on the tin. π
β οΈ real talk though: dmi_setup must be called before this function is called. like, before. not "eh, it'll probably be fine." it will not be fine. π
β¨ SEE ALSO β¨
kernel file: ./drivers/firmware/dmi_scan.c π¦
dmi_setup(9)dmi_matches(9)dmi_is_end_of_table(9)dmi_first_match(9)dmi_get_system_info(9)dmi_name_in_serial(9)dmi_name_in_vendors(9)dmi_find_device(9)dmi_get_date(9)dmi_get_bios_year(9)dmi_walk(9)dmi_match(9)dmi_memdev_type(9)dmi_memdev_handle(9)
and that's the page, bestie!! π this one lives over in ./drivers/firmware, dated October 2026 β yes, 2026, main character energy for a docs timestamp ngl ππ now go call dmi_setup first, i'm literally begging you. π
π¦ 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