of_ti_clk_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_ti_clk_register(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so hi ✨ you're looking at of_ti_clk_register, straight out of section 9 of the Kernel API Manual, and honestly? she's a little glue function and she slays at it πŸ’–


🌸 NAME 🌸

of_ti_clk_register β€” register a TI clock to the common clock framework πŸ•°οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct clk * of_ti_clk_register (struct device_node *node , struct
clk_hw *hw , const char *con );

πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” the device node for this clock, like, the clock's whole address in the device tree 🌳
  • hw β€” the hardware clock handle, the actual clk_hw thing itself 🫢
  • con β€” the connection ID for this clock, her little name tag πŸ’Œ

⭐ DESCRIPTION ⭐

So what she does is: she registers a TI clock to the common clock framework, and she adds a clock alias for it β€” two jobs, one function, main character energy πŸ‘‘πŸ’…

If it works you get back a handle to the registered clock. If it doesn't work? You get an ERR_PTR value instead 😭 so like, please check with IS_ERR() before you go dereferencing, iykyk πŸ™ˆ


🌈 SEE ALSO 🌈

Kernel file ./drivers/clk/ti/clk.c β€” and the whole friend group 🫢:


ngl the SEE ALSO list is giving "tag yourself, I'm ti_clk_add_alias(9)" πŸ˜­πŸ’€

okay that's the whole page, mwah πŸ’‹ this came from ./drivers/clk/ti and it's dated October 2026 β€” go forth and register your clocks, bestie, you're gonna do amazing πŸŒŸπŸ¦‹πŸ“πŸ’œ

πŸ“¦ where this page comes from