cpuid_leaf_raw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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-time 0xN format. Yes, literally compile-time 0xN, 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:


xoxo, sourced from ./arch/x86/include/asm/cpuid β€” October 2026 πŸŽ€πŸ’–

πŸ“¦ where this page comes from