hrtimer_update_function(9)
π NAME π
okay so bestie, this is hrtimer_update_function(9) from the Kernel API Manual β and it literally does what it says on the tin: it updates the timer's callback function. no cap π
β¨
β¨ SYNOPSIS β¨
void hrtimer_update_function (struct hrtimer *timer , enum
hrtimer_restart (*function)(struct hrtimer *) );
π¦ ARGUMENTS π¦
timerβ the timer you're updating, periodt π«Άfunctionβ the new callback function, the main character of this glow-up π
π DESCRIPTION π
Okay so the vibe check here is strict: this is only safe to call if the timer is not enqueued. That's the whole rule, bestie β do not skip it π
It can be called in the callback function if the timer is not enqueued at the same time (see the comments above HRTIMER_STATE_ENQUEUED). iykyk π
π¨ lowkey important: not enqueued = safe to call; enqueued = not the move. fr fr π
π SEE ALSO π
Kernel file ./kernel/time/hrtimer.c β and these iconic little references, all present and accounted for π:
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(9)hrtimer_setup_on_stack(9)hrtimer_sleeper_start_expires(9)hrtimer_setup_sleeper_on_stack(9)
thatβs the page, bestie π«Ά β source/version: ./kernel/time; date: October 2026; manual title: hrtimer_update_function(9) πβ¨
π¦ 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