X86_MATCH_VENDOR_FAM(9)
β¨ X86_MATCH_VENDOR_FAM β¨
okay so bestie, welcome to the X86_MATCH_VENDOR_FAM(9) page from the Kernel API Manual π
this one is short and sweet and honestly iconic β it's literally the macro that matches a CPU by vendor and family, and it eats every single time π
πΈ NAME πΈ
X86_MATCH_VENDOR_FAM β match vendor and family, no cap π«Ά
π SYNOPSIS π
X86_MATCH_VENDOR_FAM (vendor , family , data );
like yes, that's the whole vibe check right there β¨ three args, zero drama.
π ARGUMENTS π
vendorβ the vendor name, bestie! things likeINTEL,AMD,HYGON,..., andANYπ¦ and here's the cute part: the name gets expanded toX86_VENDOR_vendorπ₯ so it's giving "you write the short version, the macro does the glow-up."familyβ the family number, orX86_FAMILY_ANYif you're in your "idc, any family works" era πdataβ driver-specific data, orNULLif you've got nothing to say π the internal storage format isunsigned long, and whatever you supply β value, pointer, etc. β gets casted tounsigned longinternally β so just know it's all getting squished into anunsigned longon the inside, iykyk.
π SEE ALSO π
go check out the kernel file ./arch/x86/include/asm/cpu_device_id.h for the full lore π and then these sibling macros, because family:
X86_MATCH_CPU(9)X86_MATCH_VENDOR_FAM_FEATURE(9)X86_MATCH_VENDOR_FEATURE(9)X86_MATCH_FEATURE(9)X86_MATCH_VENDOR_FAM_MODEL(9)X86_MATCH_VFM(9)X86_MATCH_VFM_STEPS(9)X86_MATCH_VFM_FEATURE(9)X86_MATCH_VFM_CPU_TYPE(9)
like literally the whole friend group, obsessed π
and that's the page, bestie π it lives under ./arch/x86/include/asm and this version is dated October 2026 β main character energy from the kernel docs, periodt π
β¨
π¦ 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