cpuid_subleaf_n_raw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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-time 0xN format; e.g. 0x4, 0x8000001d. keep it exact, okay?
  • _subleaf β€” the subleaf number, and yes it can be passed dynamically ✨ it must be smaller than cpuid_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:


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