X86_MATCH_VFM_CPU_TYPE(9)
π X86_MATCH_VFM_CPU_TYPE(9) π
okay so bestie, welcome to X86_MATCH_VFM_CPU_TYPE(9) from the Kernel API Manual. This one is lowkey a baddie: it matches an encoded vendor/family/model/type combo, and the whole page is short enough to read before your iced coffee melts. π§β¨
πΈ NAME πΈ
X86_MATCH_VFM_CPU_TYPE β matches the encoded vendor/family/model/type. That's it, that's the name, and it ate. π
β¨ SYNOPSIS β¨
Here's the call, copied exactly so you can't mess it up:
X86_MATCH_VFM_CPU_TYPE (vfm , type , data );
π ARGUMENTS π
vfmβ the encoded combo, with 8-bits each for vendor, family, model. So yes: vendor + family + model all packed in there. π«Άtypeβ the CPU type, e.g.P-core,E-core. That's the core flavor, bestie. π₯dataβ driver specific data orNULL. The internal storage format isunsigned long. The supplied value, pointer etc. is cast tounsigned longinternally. No cap, that cast is happening. π
π SEE ALSO π
The kernel file to peek at is ./arch/x86/include/asm/cpu_device_id.h. Here's the whole related-macro crew, no cap:
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_VENDOR_FAM(9)X86_MATCH_VFM(9)X86_MATCH_VFM_STEPS(9)X86_MATCH_VFM_FEATURE(9)
Source/version tea: ./arch/x86/include/asm Β· date: October 2026 Β· footer tag: X86_MATCH_VFM_CPU_TYPE(9). That's the whole page, bestie β go match some encoded vendor/family/model/type and slay. πβ¨
π¦ 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