STRUCT CPUID_OUTPUT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to struct cpuid_output(9) from the Kernel API Manual ✨ this page is literally about the output of a CPUID operation, and we're gonna get into it πŸ’…

πŸŽ€ NAME πŸŽ€

struct cpuid_output β€” Output of a CPUID operation πŸ¦‹

✨ SYNOPSIS ✨

struct cpuid_output {
    struct cpuid_regs       *regs;
    struct leaf_parse_info  *info;
 };

🌸 Members 🌸

  • regs β€” Pointer to an array of CPUID results, where each array element covers the full EAX->EDX output range πŸ’–
  • info β€” Pointer to query info; for saving the number of filled elements at regs πŸŽ€

πŸ¦‹ Description πŸ¦‹

okay so a CPUID parser read function β€” think cpuid_read_generic or cpuid_read_0xN β€” uses this structure to save the CPUID query outputs ✨ Actual storage for regs and info is provided by the read function caller, and is typically within the CPU's CPUID table 🫢

See struct cpuid_parse_entry.read πŸ‘€

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./arch/x86/kernel/cpu/cpuid_parser.h β€” plus the struct cpuid_parse_entry(9) page too, iykyk 🌈

mwah πŸ’‹ this one's from ./arch/x86/kernel/cpu, dated October 2026, and it's struct cpuid_output(9) all the way down β€” periodt βœ¨πŸ‘‘

πŸ“¦ where this page comes from