hrtimer_start(9)
π hrtimer_start(9) β from the Kernel API Manual, bestie β¨
Okay so picture this: it's the Kernel API Manual, section 9, and the star of the show is hrtimer_start. Buckle up, we're doing timers today π
πΈ NAME πΈ
hrtimer_start β (re)start an hrtimer. That's it, that's the whole vibe. You're either starting it or restarting it, and honestly? main character energy either way π
β¨ SYNOPSIS β¨
void hrtimer_start (struct hrtimer *timer , ktime_t tim , const enum
hrtimer_mode mode );
Three args, returns void, zero drama. Slay π«Ά
π ARGUMENTS π
timerβ the timer to be added. Like, this is your timer, the one you're putting in. Not me being cryptic, it literally is the timer being added πtimβ the expiry time. When it goes off. The moment. The deadline. The "you have to be there by" of it all β°modeβ the timer mode, and this one's giving options, so let's break it down:- absolute β
HRTIMER_MODE_ABSπ― - relative β
HRTIMER_MODE_RELπ - pinned β
HRTIMER_MODE_PINNEDπ - and heads up, the softirq based mode is considered for debug purpose only! Not me making the rules, that's literally the rule π
- absolute β
ngl bestie, mode is lowkey the spicy argument here. Read it properly, okay? π
π¦ SEE ALSO π¦
Kernel file ./include/linux/hrtimer.h, plus these iconic little functions you should absolutely go say hi to:
struct hrtimer_sleeper(9)hrtimer_get_remaining(9)hrtimer_is_queued(9)hrtimer_forward_now(9)
iykyk β that header file is where all the hrtimer lore lives π§
and that's the page!! π This little masterpiece comes to you from ./include/linux, dated October 2026, filed under hrtimer_start(9) β go forth and restart those timers, bestie, you've got this ππΈβ¨
π¦ 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