hrtimer_start_range_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ hrtimer_start_range_ns(9) ✨

Okay bestie, welcome to the Kernel API Manual page for hrtimer_start_range_ns(9) β€” the function that literally (re)starts an hrtimer and gives your kernel code main character energy. This is group-chat for timers: you set when it should go off, add some slack, and pick a mode. Slay. πŸ’…


🌸 NAME 🌸

hrtimer_start_range_ns β€” (re)start an hrtimer. Periodt.


πŸŽ€ SYNOPSIS πŸŽ€

void hrtimer_start_range_ns (struct hrtimer *timer , ktime_t tim , u64 delta_ns , const enum hrtimer_mode mode );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • timer β€” the timer to be added. Like, the actual timer object you're putting on the schedule. It's the main character.
  • tim β€” expiry time. When you want this whole thing to pop off.
  • delta_ns β€” the "slack" range for the timer. Yes bestie, it's literally called slack β€” gives the timer some wiggle room. 🫢
  • mode β€” timer mode: absolute (HRTIMER_MODE_ABS) or relative (HRTIMER_MODE_REL), and pinned (HRTIMER_MODE_PINNED); softirq based mode is considered for debug purpose only! ⚠️ (so don't come for me if you use that in prod, iykyk)

🌈 SEE ALSO 🌈

Kernel file ./kernel/time/hrtimer.c and these iconic besties:


And that's the whole vibe check, bestie! πŸ’– This page lives in the ./kernel/time manual, dated October 2026, and the version tag is hrtimer_start_range_ns(9) β€” no cap, go schedule something iconic. πŸŽ€βœ¨

πŸ“¦ where this page comes from