am35xx_clk_find_companion(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… am35xx_clk_find_companion(9)

okay so bestie, buckle up β€” this is a page straight out of the Kernel API Manual, and the star of the show is am35xx_clk_find_companion. she's lowkey a matchmaker: her whole job is finding the companion clock to @clk. πŸŽ€


✨ NAME ✨

am35xx_clk_find_companion β€” find companion clock to @clk πŸ’ž


πŸ¦‹ SYNOPSIS πŸ¦‹

void am35xx_clk_find_companion (struct clk_hw_omap *clk , struct
       clk_omap_reg *other_reg , u8 *other_bit );

🌸 ARGUMENTS 🌸

  • clk β€” the struct clk * you're trying to find the companion clock of. it's giving "who's your other half" energy 🫢
  • other_reg β€” a void __iomem **, and it's where the companion clock's CM_*CLKEN virtual address gets returned. yes bestie, returned β€” through the pointer. classic. πŸ™ˆ
  • other_bit β€” a u8 **, and this one hands back the companion clock's bit shift. that's it, that's the whole vibe ⭐

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: some clocks literally don't have companion clocks. not every icon has a plus-one, yk? 😭 for example, modules that only have an interface clock (such as HECC) don't have a companion clock β€” no cap, that's just how she is.

right now, this code relies on the hardware exporting a bit in the correct companion register that indicates that the nonexistent "companion clock" is active. like... the hardware is out here pretending the bit means something and we're just going with it πŸ’€

future patches will associate this type of code with per-module data structures to avoid this issue, and remove the casts. periodt, that's the roadmap πŸ”₯

and the most important part: no return value. it's void, she returns nothing, she simply is. πŸ‘‘


🌈 SEE ALSO 🌈


πŸ’‘ friendly reminder: every one of those "find_idlest" friends is a separate manpage β€” go read them too, iykyk. 🧚

and that's the whole page, bestie! πŸ“ this iconic little number lives in ./drivers/clk/ti, dated October 2026, and it's part of the Kernel API Manual β€” am35xx_clk_find_companion(9), forever and always. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from