hrtimer_start(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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