schedule_hrt..._range_clock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a ktime_t (a pointer to one, bestie, don't forget the star ⭐)
  • delta β€” the slack in the expires timeout. she's a u64 up here in the signature but the manpage calls her a ktime_t, so write that down πŸ“
  • mode β€” the timer mode, const enum hrtimer_mode no cap
  • clock_id β€” which timer clock to be used, she's a clockid_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:


πŸ’– 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