timer_of_clk_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” a of_timer_clk structure 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