hrtimer_update_function(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸŽ€:


that’s the page, bestie 🫢 β€” source/version: ./kernel/time; date: October 2026; manual title: hrtimer_update_function(9) πŸ’–βœ¨

πŸ“¦ where this page comes from