am35xx_clk_find_companion(9)
π 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β thestruct clk *you're trying to find the companion clock of. it's giving "who's your other half" energy π«Άother_regβ avoid __iomem **, and it's where the companion clock'sCM_*CLKENvirtual address gets returned. yes bestie, returned β through the pointer. classic. πother_bitβ au8 **, 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 π
- Kernel file
./drivers/clk/ti/clk-3xxx.c omap3430es2_clk_ssi_find_idlest(9)omap3430es2_clk_dss_usbhost_find_idlest(9)omap3430es2_clk_hsotgusb_find_idlest(9)am35xx_clk_find_idlest(9)am35xx_clk_ipss_find_idlest(9)omap3_clk_lock_dpll5(9)
π‘ 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
- 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