msleep_interruptible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ 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:


with all the love from ./kernel/time, dated October 2026 β€” periodt, bestie πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from