schedule_hrt..._range_clock(9)
β¨ NAME β¨
schedule_hrtimeout_range_clock β sleep until timeout π΄π€
okay so this is from the Kernel API Manual (yes, the Big Kernel Energy manual, we love her) and she's basically the "nap until further notice" function. periodt.
π SYNOPSIS π
int schedule_hrtimeout_range_clock (ktime_t *expires , u64 delta , const
enum hrtimer_mode mode , clockid_t clock_id );
like, look at her. returns an int, takes four things, absolute icon behavior π
πΈ ARGUMENTS πΈ
expiresβ the timeout value, and she's aktime_t(a pointer to one, bestie, don't forget the star β)deltaβ the slack in theexpirestimeout. she's au64up here in the signature but the manpage calls her aktime_t, so write that down πmodeβ the timer mode,const enum hrtimer_modeno capclock_idβ which timer clock to be used, she's aclockid_tπ°οΈ
π¦ DESCRIPTION π¦
ngl the details are literally explained in the schedule_hrtimeout_range function description, because this function is commonly used and they didn't wanna retype the whole thing π so if you want the full lore, go read that one, iykyk.
π«Ά SEE ALSO π«Ά
kernel file ./kernel/time/sleep_timeout.c and her whole friend group:
schedule_timeout(9)schedule_timeout_interruptible(9)schedule_timeout_killable(9)schedule_timeout_uninterruptible(9)schedule_timeout_idle(9)schedule_hrtimeout_range(9)schedule_hrtimeout(9)msleep(9)msleep_interruptible(9)usleep_range_state(9)
π that's the whole page bestie, go take a nap (a high resolution nap, with slack) π
anyway this cutie lives in ./kernel/time and she's dated October 2026 β slay, see u in the next release β¨π
π¦ 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