X86_MATCH_VFM_STEPS(9)
π X86_MATCH_VFM_STEPS(9) β a Kernel API Manual moment
okay so bestie, welcome to the X86_MATCH_VFM_STEPS(9) page, straight out of the Kernel API Manual β¨ this one's a macro for matching CPUs by their encoded vendor/family/model and a whole range of steppings, and it's lowkey iconic.
π NAME π
X86_MATCH_VFM_STEPS β matches on encoded vendor/family/model AND a stepping range. yes, both. she does it all π
β¨ SYNOPSIS β¨
X86_MATCH_VFM_STEPS (vfm , min_step , max_step , data );
that's the whole vibe fr fr π«Ά
πΈ ARGUMENTS πΈ
vfmβ the encoded bits, 8 bits each for vendor, family, and model. packed cuteness πmin_stepβ the lowest stepping number you want to match. the floor, the bare minimum, the "you must be at least this tall to ride" π’max_stepβ the highest stepping number you want to match. the ceiling π so together withmin_stepyou get a whole stepping range, slay.dataβ driver-specific data, orNULL. the internal storage format isunsigned long, so whatever you hand over β a pointer, a value, anything β gets cast tounsigned longinternally. no cap, that's just how she stores it π₯
π¦ SEE ALSO π¦
this is the part where the friend group gets introduced π all of these live in the kernel file ./arch/x86/include/asm/cpu_device_id.h, and honestly? obsessed with the squad:
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_FEATURE(9)X86_MATCH_VFM_CPU_TYPE(9)
main character energy across the board π go read them, iykyk.
π tiny reminder bestie:databeing cast tounsigned longis the internal storage format β that's the documented behaviour, don't come for me about anything else, it's literally what the page says π
πΈ and that's the page! brought to you from ./arch/x86/include/asm, dated October 2026, and filed under X86_MATCH_VFM_STEPS(9) β mwah, go match some steppings, ily ππ
π¦ 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