SUSPENDSCHED(9)

πŸ“¦ version 11.0, in nixpkgs unstable

SUSPENDSCHED(9) πŸ’… Kernel Developer's Manual πŸ’…

okay bestie, this is the suspendsched(9) page and it’s lowkey iconic. let’s get into it ✨

πŸŽ€ NAME πŸŽ€

  • suspendsched β€” suspend the scheduler

✨ SYNOPSIS ✨

#include <sys/proc.h>
#include <sys/sched.h>

void
suspendsched(void);

🌸 DESCRIPTION 🌸

so suspendsched() literally suspends the operation of the scheduler. the way it does that? by stopping all non-system processes which are on the run queue or the sleep queue. no cap 🫢

⚠️ bestie, huge caveat: the suspendsched() function must not be called with the scheduler lock held. like, do not do it. it’s giving β€œread the room” energy πŸ’€

mwah πŸ’– this one’s from Debian, dated September 21, 2002 β€” SUSPENDSCHED(9), signing off, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from