hrtimer_setup(9)
π hrtimer_setup(9) π
okay bestie, welcome to section 9 of the Kernel API Manual β yes we're in kernel space now, put your seatbelt on π’ this one's called hrtimer_setup(9) and it's literally the "get your timer ready" girlie.
β¨ NAME β¨
hrtimer_setup β initialize a timer to the given clock β°
πΈ SYNOPSIS πΈ
void hrtimer_setup (struct hrtimer *timer , enum hrtimer_restart
(*function)(struct hrtimer *) , clockid_t clock_id , enum hrtimer_mode
mode );
π ARGUMENTS π
timerβ the timer to be initialized π«Ά this is the main character, the one getting set upfunctionβ the callback function, aka what runs when the timer goes off, no capclock_idβ the clock to be used, pick your timeline bestie π°οΈmodeβ the modes which are relevant for initialization:HRTIMER_MODE_ABSHRTIMER_MODE_RELHRTIMER_MODE_ABS_SOFTHRTIMER_MODE_REL_SOFT
π¦ DESCRIPTION π¦
so here's the tea β the PINNED variants of the above can be handed in, but heads up β the PINNED bit is ignored, because pinning actually happens when the hrtimer is started. not at setup. periodt π don't come for me, that's just how it is.
π SEE ALSO π
Kernel file ./kernel/time/hrtimer.c and its whole friend group:
hrtimer_update_function(9)hrtimer_forward(9)hrtimer_start_range_ns(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_on_stack(9)hrtimer_sleeper_start_expires(9)hrtimer_setup_sleeper_on_stack(9)
okay that's the whole page, you ate that π this lil' drop came from ./kernel/time, dated October 2026 β mwah, see u in the next manpage bestie π§β¨π
π¦ 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