cpupri_init(9)
π cpupri_init π
okay so this is a page from the Kernel API Manual, section 9 (that's the kernel-API girlies, iykyk) β and it's all about cpupri_init, aka the function that initializes the cpupri structure. that's it. that's the whole vibe. she sets things up so the rest of the cpupri crew can do their thing β¨
πΈ NAME πΈ
cpupri_init β initialize the cpupri structure π
like, literally what it says on the tin. it inits the cpupri. no cap.
π¦ SYNOPSIS π¦
int cpupri_init (struct cpupri *cp );
look at her. one argument. one return value. main character energy fr fr π
π ARGUMENTS π
cpβ The cpupri context π that's the struct you're handing over, bestie. it's the cpupri context, so likeβ¦ the one that's about to get initialized. hand it over and let her cook.
β RETURN β
returns -ENOMEM on memory allocation failure π
so if the memory allocation goes sideways, you get -ENOMEM back. that's the only thing listed here, so don't come for me asking about other return values β this page doesn't say, and I'm not out here inventing lore π
π reminder bestie: -ENOMEM = the allocation did NOT slay. check your memory situation if you see it.
π SEE ALSO π
- the kernel file
./kernel/sched/cpupri.cπ β the source herself, go read it if you're nosy (affectionate) cpupri_find_fitness(9)cpupri_set(9)cpupri_cleanup(9)
basically the whole cpupri friend group π«Ά init her, set her, find her fitness, then clean her up. the full cycle, periodt π
and that's the page!! sending you off with a cute little sign-off from the source π§: this one lives in ./kernel/sched, it's dated October 2026, and it's filed under cpupri_init(9). mwah πβ¨ go init something iconic π
π¦ 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