hrtimer_start_range_ns(9)
β¨ 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:
hrtimer_update_function(9)hrtimer_forward(9)hrtimer_start_range_ns_user(9)hrtimer_try_to_cancel(9)hrtimer_cancel(9)__hrtimer_get_remaining(9)hrtimer_get_next_event(9)hrtimer_next_event_without(9)hrtimer_setup(9)hrtimer_setup_on_stack(9)hrtimer_sleeper_start_expires(9)hrtimer_setup_sleeper_on_stack(9)
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
- 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