of_ti_clk_register_omap_hw(9)
π of_ti_clk_register_omap_hw(9) β from the Kernel API Manual, bestie
okay so real talk, this is a page straight out of the Kernel API Manual, and it's about getting your clk_hw_omap clock seen by the clock framework. it's giving backstage-pass energy. let's go π
β¨ NAME β¨
of_ti_clk_register_omap_hw β registers a clk_hw_omap to the clock framework. that's it, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
struct clk * of_ti_clk_register_omap_hw (struct device_node *node ,
struct clk_hw *hw , const char *con );
like, three args, one return, no drama. periodt.
π ARGUMENTS π
nodeβ the device node for this clock. it's the clock's little home address, yk?hwβ the hardware clock handle. the actual clock in question, the main character πconβ the connection ID for this clock. its lil name tag at the function π
π₯ DESCRIPTION π₯
so what does it do. okay:
- registers a
clk_hw_omapclock to the clock framework (yes, the original page literally says "framewor", we're keeping the lore π) - adds a clock alias for it
- adds the list to the available
clk_hw_omaptype clocks
and the return value? if it worked, you get a handle to the registered clock β literally the glow-up receipt β¨. if it didn't work, you get an ERR_PTR value. no in-between, no "maybe", it's giving all or nothing π
π SEE ALSO π
go read these next, i promise they're iconic in their own way:
- Kernel file
./drivers/clk/ti/clk.c ti_clk_setup_ll_ops(9)ti_dt_clocks_register(9)ti_clk_retry_init(9)ti_clk_get_reg_addr(9)ti_clk_get_legacy_bit_shift(9)omap2_clk_provider_init(9)omap2_clk_legacy_provider_init(9)ti_dt_clk_init_retry_clks(9)ti_dt_clk_name(9)ti_clk_add_aliases(9)ti_clk_setup_features(9)ti_clk_get_features(9)omap2_clk_enable_init_clocks(9)ti_clk_add_alias(9)of_ti_clk_register(9)omap2_clk_for_each(9)omap2_clk_is_hw_omap(9)
ngl, if you skipped the DESCRIPTION and went straight here, go back up. the ERR_PTR bit matters fr fr π
and that's the page! signing off from ./drivers/clk/ti, dated October 2026, living under the very official title of of_ti_clk_register_omap_hw(9). mwah π stay slay, keep your clocks registered, ily π«Άπβ
π¦ 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