gtm_set_timer16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ gtm_set_timer16(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual page for gtm_set_timer16(9) β€” she’s the one who (re)sets a 16-bit timer with arbitrary precision, and honestly? iconic. πŸ’…βœ¨


πŸ’– NAME πŸ’–

gtm_set_timer16 - (re)set 16 bit timer with arbitrary precision

✨ SYNOPSIS ✨

int gtm_set_timer16 (struct gtm_timer *tmr , unsigned long usec , bool
       reload );

πŸŽ€ ARGUMENTS πŸŽ€

  • tmr β€” pointer to the gtm_timer structure obtained from gtm_get_timer
  • usec β€” timer interval in microseconds
  • reload β€” if set, the timer will reset upon expiry rather than continue running free.

πŸ¦‹ CONTEXT πŸ¦‹

any 🫢 β€” that’s literally the whole context, bestie.

πŸ’… 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. periodt. πŸ’₯

and yes, she’s smart: this function will reduce the precision of the timer as needed in order for the requested timeout to fit in a 16-bit register. it’s giving β€œwe can make it fit” energy, no cap. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯


cute sign-off bestie: this one’s from ./arch/powerpc/sysdev, dated October 2026, and it’s filed under gtm_set_timer16(9). mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from