schedule_timeout_killable(9)
π€ 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:
schedule_timeout(9)schedule_timeout_interruptible(9)schedule_timeout_uninterruptible(9)schedule_timeout_idle(9)schedule_hrtimeout_range_clock(9)schedule_hrtimeout_range(9)schedule_hrtimeout(9)msleep(9)msleep_interruptible(9)usleep_range_state(9)
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
- 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