X86_MATCH_VE..._FAM_FEATURE(9)
π X86_MATCH_VE..._FAM_FEATURE π
okay so bestie, welcome to the X86_MATCH_VE..._FAM_FEATURE(9) page β that's section 9 of the Kernel API Manual, iykyk π this is the macro that lets you match a CPU on vendor, family, and feature, all at once. iconic triple-threat behaviour, honestly β¨
πΈ NAME πΈ
X86_MATCH_VENDOR_FAM_FEATURE β the macro for matching vendor, family and CPU feature. three things. one macro. slay π
β¨ SYNOPSIS β¨
X86_MATCH_VENDOR_FAM_FEATURE (vendor , family , feature , data );
that's the whole vibe check right there π¦ four args, no cap.
π ARGUMENTS π
vendorβ the vendor name, fr fr. likeINTEL,AMD,HYGON, ..., andANY. lowkey the cute part: the name gets expanded toX86_VENDOR_vendorinternally, so you just write the short one and let the macro do its little transformation moment β¨familyβ the family number, orX86_FAMILY_ANYif you're not trying to be picky about families (understandable, live your truth) πfeatureβ aX86_FEATUREbit. one bit. that's the whole thing πdataβ driver specific data, orNULLif you've got nothing to say π. heads up: the internal storage format isunsigned long, and whatever you supply β value, pointer, etc. β gets casted tounsigned longinternally. so like, it's giving "trust the process" π
π¦ SEE ALSO π¦
- kernel file
./arch/x86/include/asm/cpu_device_id.h X86_MATCH_CPU(9)X86_MATCH_VENDOR_FEATURE(9)X86_MATCH_FEATURE(9)X86_MATCH_VENDOR_FAM_MODEL(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)
the whole matching macro family is right there, go read them, they're all main character energy in their own way π«Ά
ngl bestie, if you're here you're probably writing a CPU device id table β and honestly? obsessed with your dedication to arch-specific details ππ₯
mwah π that's the page! this one lives at ./arch/x86/include/asm, dated October 2026, and it's filed under X86_MATCH_VE..._FAM_FEATURE(9) β yes the title is truncated with ..., no that's not a typo, that's just how the man page rendering does it π go forth and match your vendors, families and features, 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