timer_of_clk_init(9)
π timer_of_clk_init(9) π
okay bestie, welcome to the Kernel API Manual β today's main character is timer_of_clk_init(9) and she is literally here to set up your clock resources β¨
πΈ NAME πΈ
timer_of_clk_init β initialize the clock resources π
π¦ SYNOPSIS π¦
int timer_of_clk_init (struct device_node *np , struct of_timer_clk
*of_clk );
β¨ ARGUMENTS β¨
npβ a device tree node pointer π³ (yes king, point at that node)of_clkβ aof_timer_clkstructure pointer π«Ά
π DESCRIPTION π
so here's the vibe: it gets the clock by name or by index, enables it, and gets the rate. that's the whole serve. π«
Returns 0 on success, < 0 otherwise π (ngl, if you see a negative number, something did not slay).
π₯ SEE ALSO π₯
Kernel file ./drivers/clocksource/timer-of.c β and honestly the whole friend group:
lowkey iconic that all these live in ./drivers/clocksource fr fr π β go read the source, it ate π
and that's the page bestie!! π§ββοΈ source/version vibes: ./drivers/clocksource, dated October 2026 β catch you in the next manpage, periodt ππβ
π¦ 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