X86_MATCH_VENDOR_FAM_MODEL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

X86_MATCH_VENDOR_FAM_MODEL β€” bestie, this is the one that matches vendor, family and model all at once πŸ’… (that's the manual name btw, X86_MATCH_VENDOR_FAM_MODEL(9), from the Kernel API Manual β€” hi, so glad you're here 🫢)


🌸 SYNOPSIS 🌸

X86_MATCH_VENDOR_FAM_MODEL (vendor , family , model , data );

okay so that's literally the whole call, no cap ✨ four lil slots and you're matching CPUs like a main character πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • vendor β€” the vendor name, e.g. INTEL, AMD, HYGON, ..., ANY. The way this works is iconic: the name gets expanded to X86_VENDOR_vendor 🧚 so like, spell it right or it's not gonna vibe-check correctly πŸ’€
  • family β€” the family number, or X86_FAMILY_ANY when you're feeling ✨unbothered✨ and want to match any family 🌈
  • model β€” the model number, a model constant, or X86_MODEL_ANY (again, the "don't care, slay" option πŸ’…)
  • data β€” driver specific data or NULL. The internal storage format is unsigned long, and the supplied value, pointer, etc. is casted to unsigned long internally πŸ”₯ so yeah, whatever you hand over gets squished into an unsigned long, just so you know πŸ‘€

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./arch/x86/include/asm/cpu_device_id.h πŸ‘‘ β€” the whole squad lives here:

all of them ate, fr fr πŸ“ go read them, iykyk πŸ’–


okay that's the whole page bestie!! this one's sourced from ./arch/x86/include/asm and dated October 2026 β€” periodt, go match some CPUs, you're gonna do amazing πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from