cpupri_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the cpupri context. 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 🧚


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