xilinx_timer_tlr_cycles(9)
π xilinx_timer_tlr_cycles π
okay so bestie, this is a page from the Kernel API Manual (yes, the kernel has manuals, and yes, they're kind of iconic) β it's all about xilinx_timer_tlr_cycles, a lil function that calculates the TLR for a period that you specified in clock cycles. π
β¨ NAME β¨
xilinx_timer_tlr_cycles β Calculate the TLR for a period specified in clock cycles π°οΈβ¨
πΈ SYNOPSIS πΈ
u32 xilinx_timer_tlr_cycles (struct xilinx_timer_priv *priv , u32 tcsr ,
u64 cycles );
like, that's the whole signature, no cap. π«Ά
π¦ ARGUMENTS π¦
privβ The timer's private data π (yes, it's private, mind your business)tcsrβ The value of theTCSRregister for this counter βcyclesβ The number of cycles in this period π₯
π DESCRIPTION π
ok so listen up, because this is the important part:
Callers of this function MUST ensure thatcyclesis representable as aTLR.
like, that's not a suggestion, that's a MUST with all caps, periodt. π If your cycles value can't be represented as a TLR, that's on you, not on this function. Do your vibe check before you call, bestie. π
π RETURN π
It returns The calculated value for TLR β¨ β that's it, that's the tea. π
π§ SEE ALSO π§
- Kernel file
./include/clocksource/timer-xilinx.hstructxilinx_timer_priv(9)π xilinx_timer_get_period(9)πΈ
iykyk π
and that's the whole page, bestie β no notes, she ate. π«Ά The source lives under ./include/clocksource, and this lil masterpiece is dated October 2026. Go forth and calculate those TLRs responsibly, 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