cpuid_leaf_raw(9)
πΈ NAME πΈ
cpuid_leaf_raw β Access parsed CPUID data in raw format. Okay bestie, this is from the Kernel API Manual, and it's giving raw-data realness for CPUID πβ¨
π SYNOPSIS π
cpuid_leaf_raw (_cpuinfo , _leaf );
π ARGUMENTS π
_cpuinfoβ the CPU capability structure reference ('struct cpuinfo_x86') π«Ά_leafβ the CPUID leaf, in compile-time0xNformat. Yes, literally compile-time0xN, iykyk π§
β¨ DESCRIPTION β¨
So it's similar to cpuid_leaf, but here's the plot twist: it returns a raw struct cpuid_regs pointer to the parsed CPUID data instead of a βtypedβ <asm/cpuid/leaf_types.h> pointer. That's the whole flex β raw format, no typed wrapper, periodt π
π₯
π¦ SEE ALSO π¦
Kernel file ./arch/x86/include/asm/cpuid/api.h, plus the whole friend group:
cpuid_leaf_0x2(9)for_each_cpuid_0x2_desc(9)cpuid_subleaf(9)cpuid_leaf(9)cpuid_subleaf_n(9)cpuid_subleaf_n_raw(9)cpuid_subleaf_count(9)
xoxo, sourced from ./arch/x86/include/asm/cpuid β October 2026 ππ
π¦ 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