cpupri_set(9)
β¨ NAME β¨
okay so bestie, this is cpupri_set from the Kernel API Manual π β the function for update the CPU priority setting. it's giving kernel scheduler realness, no cap π
π¦ SYNOPSIS π¦
here's the whole signature, exactly as it shows up, no edits:
void cpupri_set (struct cpupri *cp , int cpu , int newpri );
π ARGUMENTS π
cpβ thecpupricontext. that's the main-character context your function is working with πcpuβ the target CPU. yes, the specific CPU you're assigning priority to π―newpriβ the priority(INVALID,NORMAL,RT1-RT99,HIGHER)to assign to this CPU. pick one, bestie, those are the options π
πΈ NOTE πΈ
β οΈ important vibe check: this assumes cpu_rq(cpu)->lock is locked. like, that's the whole note β don't come for me, it's literally in the manpage π
π RETURN π
(void) β so it returns nothing. literally void. no value, no drama, just done π«Ά
π§ SEE ALSO π§
- Kernel file
./kernel/sched/cpupri.cβ the source file, go sip some tea and read it β cpupri_find_fitness(9)β bestie function alert πcpupri_init(9)β init energy β¨cpupri_cleanup(9)β cleanup era π§Ή
mwah π this cutie came from ./kernel/sched, dated October 2026, and it's still serving cpupri_set(9) β bye bestie! π«Ά
π¦ 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