init_per_cpu(9)
π init_per_cpu(9) π
okay bestie, welcome to the Kernel API Manual β today's page is init_per_cpu(9), and it's literally giving "every CPU gets its own little glow-up" energy. no cap. πβ¨
πΈ NAME πΈ
init_per_cpu β Handle individual processor initializations.
π¦ SYNOPSIS π¦
int init_per_cpu (int cpunum );
π ARGUMENTS π
cpunumβ logical processor number. that's the arg, bestie. π«Ά
π DESCRIPTION π
okay so this function handles initialization for every CPU in the system. not a vibe check for one CPU β every CPU. periodt. π
Here's the whole checklist, and yes we're keeping every single detail:
- Set
"default"CPU width for trap handlers. π - Enable FP coprocessor. REVISIT: this could be done in the
"code 22"trap handler. (frowands ideaβ that way we know which processes need FP registers saved on the interrupt stack.) NEWS FLASH: wide kernels need FP coprocessor enabled to handle formatted printing oflxfor example (double divides I think). π«Ά - Enable CPU profiling hooks. slay. π₯
π SEE ALSO π
Kernel file ./arch/parisc/kernel/processor.c, plus init_percpu_prof(9), processor_probe(9), collect_boot_cpu_data(9), and processor_init(9). iykyk β those are the next reads, bestie. π
signed off with source/version ./arch/parisc/kernel and date October 2026 β init_per_cpu(9) out here with main character energy. π
π«Ά
π¦ 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