cpuid_subleaf_n_raw(9)
π NAME π
okay so welcome to cpuid_subleaf_n_raw(9) in the Kernel API Manual, bestie π
this page is all about accessing parsed CPUID data for a leaf with a subleaf range. no cap.
β¨ SYNOPSIS β¨
cpuid_subleaf_n_raw (_cpuinfo , _leaf , _subleaf );
π ARGUMENTS π
_cpuinfoβ your reference to the CPU capability structure (struct cpuinfo_x86). literally the CPU-info bestie π«Ά_leafβ the CPUID leaf, in compile-time0xNformat; e.g.0x4,0x8000001d. keep it exact, okay?_subleafβ the subleaf number, and yes it can be passed dynamically β¨ it must be smaller thancpuid_subleaf_count(_cpuinfo, _leaf). that's the rule π
π¦ DESCRIPTION π¦
Similar to cpuid_subleaf_n, but instead of giving you a βtypedβ <asm/cpuid/leaf_types.h> pointer, it returns a raw struct cpuid_regs pointer to the parsed CPUID data. itβs giving βsame energy, rawer pointerβ ππ₯
πΈ SEE ALSO πΈ
Kernel file: ./arch/x86/include/asm/cpuid/api.h β and hereβs the whole friend group:
cpuid_leaf_0x2(9)for_each_cpuid_0x2_desc(9)cpuid_subleaf(9)cpuid_leaf(9)cpuid_leaf_raw(9)cpuid_subleaf_n(9)cpuid_subleaf_count(9)
xoxo, this page is sourced from ./arch/x86/include/asm/cpuid, dated October 2026, and itβs cpuid_subleaf_n_raw(9) signing off β bye bestie ππ
π¦ 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