X86_MATCH_VENDOR_FAM_MODEL(9)
β¨ 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 toX86_VENDOR_vendorπ§ so like, spell it right or it's not gonna vibe-check correctly πfamilyβ the family number, orX86_FAMILY_ANYwhen you're feeling β¨unbotheredβ¨ and want to match any family πmodelβ the model number, a model constant, orX86_MODEL_ANY(again, the "don't care, slay" option π )dataβ driver specific data orNULL. The internal storage format isunsigned long, and the supplied value, pointer, etc. is casted tounsigned longinternally π₯ so yeah, whatever you hand over gets squished into anunsigned long, just so you know π
π¦ SEE ALSO π¦
Kernel file ./arch/x86/include/asm/cpu_device_id.h π β the whole squad lives here:
X86_MATCH_CPU(9)X86_MATCH_VENDOR_FAM_FEATURE(9)X86_MATCH_VENDOR_FEATURE(9)X86_MATCH_FEATURE(9)X86_MATCH_VENDOR_FAM(9)X86_MATCH_VFM(9)X86_MATCH_VFM_STEPS(9)X86_MATCH_VFM_FEATURE(9)X86_MATCH_VFM_CPU_TYPE(9)
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
- 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