schedule_preempt_disabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… schedule_preempt_disabled β€” a Kernel API Manual moment

okay so bestie, welcome to the little page for schedule_preempt_disabled(9), straight out of the Kernel API Manual. it's short, it's iconic, it's lowkey doing a lot with very few words. let's get into it 🫢


✨ NAME ✨

schedule_preempt_disabled β€” the one you call when preemption is already switched off. that's the whole vibe. no cap.


🌸 SYNOPSIS 🌸

void schedule_preempt_disabled (void );

that's it. that's the whole signature. she's minimal, she's clean, she's giving main character energy πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, bestie. zero. nada. nothing to pass in, nothing to stress about πŸ™ˆ

⭐ DESCRIPTION ⭐

so here's the tea: this function returns with preemption disabled. like, you go in with preemption off and you come back out with preemption off. the vibe check stays the same the entire time ✨

⚠️ and listen β€” the note is important: preempt_count must be 1. not zero, not two, not "eh somewhere around there". it's 1. respect the count, fr fr πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, in Kernel file ./kernel/sched/core.c:

like, the scheduler core squad is right there β€” go read them too, iykyk πŸ‘‘


🌈 okay that's the page!! thanks for coming to my ted talk πŸ§šπŸ’– this little writeup came from ./kernel/sched, dated October 2026, and it's filed under schedule_preempt_disabled(9). slay, bye bestie πŸŽ€βœ¨

πŸ“¦ where this page comes from