dmi_match(9)
π dmi_match(9) β Kernel API Manual π
okay so bestie, weβre in the Kernel API Manual and this page is about one tiny comparison. lowkey adorable. π«Ά
πΈ NAME πΈ
dmi_match β compare a string to the dmi field, but only if that field exists. Thatβs the whole assignment, no cap. β¨
β¨ SYNOPSIS β¨
bool dmi_match (enum dmi_field f , const char *str );
π ARGUMENTS π
fβ the DMI field identifier. Itβs telling you which field weβre checking, bestie. πstrβ the string to compare the DMI field to. This is the string side of the matchup. π
π DESCRIPTION π
Returns true if the requested field equals str β and yes, the NULL case is included too, fr fr. Thatβs it. Thatβs the function. If the field and the string match, you get true; if they donβt, you donβt. slay. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/firmware/dmi_scan.c β go peek if youβre feeling nosy. π
Also, the whole (9) friend group is here:
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_find_device(9)dmi_get_date(9)dmi_get_bios_year(9)dmi_walk(9)dmi_memdev_type(9)dmi_memdev_handle(9)
π okay bye bestie β source/version: ./drivers/firmware, date: October 2026, page: dmi_match(9). slay and stay matching! π
π¦ 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