gtm_set_timer16(9)
π 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 thegtm_timerstructure obtained fromgtm_get_timerusecβ timer interval in microsecondsreloadβ 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 π₯
- Kernel file
./arch/powerpc/sysdev/fsl_gtm.c gtm_get_timer16(9)gtm_get_specific_timer16(9)gtm_put_timer16(9)gtm_set_exact_timer16(9)gtm_stop_timer16(9)gtm_ack_timer16(9)
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
- 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