dmi_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


πŸ’– okay bye bestie β€” source/version: ./drivers/firmware, date: October 2026, page: dmi_match(9). slay and stay matching! πŸ’–

πŸ“¦ where this page comes from