cpuid_scan_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so cpuid_scan_cpu is literally here to populate the current CPU's CPUID table. periodt. This is the cpuid_scan_cpu(9) page from the Kernel API Manual, and she's giving main-character energy for your CPU's capability info ✨

✨ SYNOPSIS ✨

like, the whole signature is:

void cpuid_scan_cpu (struct cpuinfo_x86 *c );

πŸŽ€ ARGUMENTS πŸŽ€

  • c β€” the CPU capability structure associated with the current CPU. this is the one getting its CPUID table filled in, iykyk 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

real talk: this function populates the CPUID table embedded within c with parsed CPUID data. she's not out here doing remote work β€” all CPUID instructions are invoked locally, so this must be called on the CPU associated with c. no cap, that part matters πŸ’…

bestie, pls remember: local CPUID instructions only, so call it on the CPU that matches c πŸ”₯

🌸 SEE ALSO 🌸

the kernel file is ./arch/x86/kernel/cpu/cpuid_parser.c, and the related pages are cpuid_refresh_range(9) and cpuid_refresh_leaf(9). go check 'em out, bestie πŸ’œ


mwah πŸ’‹ source/version: ./arch/x86/kernel/cpu Β· date: October 2026 Β· footer icon: cpuid_scan_cpu(9) 🫢

πŸ“¦ where this page comes from