msleep_interruptible(9)
π€ msleep_interruptible(9) β a Kernel API Manual moment, bestie β¨
π NAME π
msleep_interruptible β sleep waiting for signals. literally the βnap until someone signals meβ icon π
β¨
πΈ SYNOPSIS πΈ
unsigned long msleep_interruptible (unsigned int msecs );
π¦ ARGUMENTS π¦
msecsβ the requested sleep duration, in milliseconds. thatβs your nap length, bestie β³π
π DESCRIPTION π
For some basic information, see msleep β this page is lowkey telling you to check that one for the basics π«Ά
The difference between msleep and msleep_interruptible is that the sleep could be interrupted by a signal delivery and then returns early. so yes, the nap can get cut short by a signal and it comes back early β not me waking up before my alarm ππ
so real talk: the sleep could be interrupted by signal delivery and return early. donβt act surprised when it does, bestie π¨π
π RETURN π
The remaining time of the sleep duration transformed to msecs β see schedule_timeout for details. leftover nap time, in milliseconds, handed right back to you π«Άβ°
π SEE ALSO π
Kernel file ./kernel/time/sleep_timeout.c is over here being iconic, and the whole SEE ALSO squad is:
schedule_timeout(9)schedule_timeout_interruptible(9)schedule_timeout_killable(9)schedule_timeout_uninterruptible(9)schedule_timeout_idle(9)schedule_hrtimeout_range_clock(9)schedule_hrtimeout_range(9)schedule_hrtimeout(9)msleep(9)usleep_range_state(9)
with all the love from ./kernel/time, dated October 2026 β periodt, bestie π«Άππ
π¦ 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