gtm_set_exact_timer16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hiii bestie πŸ’– welcome to the gtm_set_exact_timer16(9) page from the Kernel API Manual β€” yes, we’re doing kernel timer lore today, and it’s lowkey iconic.

✨ NAME ✨

gtm_set_exact_timer16 β€” (re)set 16 bits timer. That’s the whole vibe: it (re)sets a 16-bit timer. πŸŽ€

πŸ”₯ SYNOPSIS πŸ”₯

int gtm_set_exact_timer16 (struct gtm_timer *tmr , u16 usec , bool
       reload );

🧚 ARGUMENTS 🧚

  • tmr β€” pointer to the gtm_timer structure obtained from gtm_get_timer. It’s your timer handle, bestie 🫢.
  • usec β€” timer interval in microseconds. That’s the countdown tea β˜•.
  • reload β€” if set, the timer will reset upon expiry rather than continue running free. So it loops instead of just vibing forever, periodt πŸ’….

🌈 CONTEXT 🌈

any β€” literally any context, no restrictions. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

okay so this function (re)sets the GTM timer so that it counts up to the requested interval value, and fires the interrupt when the value is reached. It’s giving β€œwake me up when we hit the number” energy. ✨

If the reload flag was set, the timer will also reset itself upon the reference value; otherwise, it continues to increment. No cap πŸ”.

The _exact_ bit in the function name states that this function will not crop precision of the usec argument β€” so usec is limited to 16 bits (single timer width). That’s the tradeoff, bestie: exact precision, but only 16 bits of room. πŸ’€ (Not death, just a width limit. Still important.)

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./arch/powerpc/sysdev/fsl_gtm.c β€” plus the timer16 besties: gtm_get_timer16(9), gtm_get_specific_timer16(9), gtm_put_timer16(9), gtm_set_timer16(9), gtm_stop_timer16(9), gtm_ack_timer16(9). Go click those, iykyk πŸ”₯.


and that’s the tea β˜• β€” source/version: ./arch/powerpc/sysdev, dated October 2026, for gtm_set_exact_timer16(9). bye bestie, go set some timers πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from