schedule_timeout_killable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ schedule_timeout_killable(9) πŸ’€

okay so bestie, welcome to the Kernel API Manual β€” this is the page for schedule_timeout_killable, and yes it's as much of a mouthful as it looks πŸ’… don't worry, we're gonna get through it together.


🌸 NAME 🌸

schedule_timeout_killable β€” sleep until timeout (killable)

like, literally just nap city, but make it interruptible-by-signal, yk? 😴


✨ SYNOPSIS ✨

signed long schedule_timeout_killable (signed long timeout );

that's the whole vibe. one argument, one return, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • timeout β€” the timeout value, and it's in jiffies bestie, jiffies, not seconds, not millis, jiffies. write that down πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so for the actual deets? See schedule_timeout for details. β€” that's it, that's the lore, go read the other page, iykyk πŸ’€

but there IS one thing this one does on its own and it's iconic: Task state is set to TASK_KILLABLE before starting the timeout. πŸ‘‘

fr fr that's the whole main character energy of this function β€” it's sleepytime but with the killable flag set. periodt.


🌈 SEE ALSO 🌈

look at this little friend group omg πŸ₯Ή all of these live in the kernel file ./kernel/time/sleep_timeout.c:

go give 'em a read, they're all slaying in their own way πŸ’–


reminder bestie: timeout is in jiffies β€” do NOT pass seconds and then act surprised, i'm begging πŸ™ˆ

and that's the page!! sourced straight from ./kernel/time, dated October 2026 β€” mwah, love u, go take a lil nap (killable, obviously) πŸ§šβ­πŸ’œ

πŸ“¦ where this page comes from