__CPUID_LEAF(9)
π __CPUID_LEAF(9) β Kernel API Manual π
okay so bestie, this is __CPUID_LEAF(9) from the Kernel API Manual, and it's literally here to define a CPUID output and parse info entry. No cap, that's the whole name vibe. π¦
π NAME π
__CPUID_LEAF β define a CPUID output and parse info entry. Periodt. π
β¨ SYNOPSIS β¨
__CPUID_LEAF (_name , _count );
π«Ά ARGUMENTS π«Ά
_nameβ the struct type name of the CPUID leaf/subleaf, like'leaf_0x7_0'. These types are defined at<cpuid/leaf_types.h>and follow theleaf_0xM_Nformat, where0xMis the leaf andNis the subleaf. The naming is giving structured, and we love that for us. πΈ_countβ number of storage entries to allocate for this leaf/subleaf. That's the count, bestie. β¨
π DESCRIPTION π
For a given leaf/subleaf, this defines an array of CPUID storage entries and an associated query info structure. It's giving setup, and honestly? Iconic. π₯
Use an array of storage entries to accommodate CPUID leaves with multiple subleaves having the same output format. This is common for hierarchical enumeration; e.g., CPUID(0x4), CPUID(0x12), and CPUID(0x8000001d). Slay. π
π¦ SEE ALSO π¦
- Kernel file
./arch/x86/include/asm/cpuid/types.h struct leaf_parse_info(9)CPUID_LEAF(9)CPUID_LEAF_N(9)struct cpuid_table(9)
Mwah π β source: ./arch/x86/include/asm/cpuid, date/version: October 2026, page: __CPUID_LEAF(9). Bye bestie, go parse those CPUID leaves πβ¨
π¦ 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