cpuid_scan_cpu(9)
π 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
- 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