sci_clk_get(9)
π sci_clk_get(9) π
okay so bestie, welcome to the Kernel API Manual β today's episode: sci_clk_get(9), or as I like to call it, the little xlate function that could β¨
πΈ NAME πΈ
sci_clk_get β the xlate function for getting clock handles, no cap ππ
π SYNOPSIS π
struct clk_hw * sci_clk_get (struct of_phandle_args *clkspec , void
*data );
literally the whole vibe right there, bestie π«Ά
π¦ ARGUMENTS π¦
clkspecβ the device tree clock specifier, aka the little note that says which clock we're talking about πdataβ a pointer to the clock provider, the main character holding all the clock lore π
β DESCRIPTION β
okay so here's the tea: sci_clk_get is the xlate function for retrieving clock TI SCI hw clock handles based on a device tree clock specifier π―
it gets called from the common clock framework whenever a corresponding of_clk_get call is executed β so like, you don't call it, the framework calls it, iykyk π§
and what does it give you? a pointer to the TI SCI hw clock struct π β¦ or an ERR_PTR value if it fails π (yes, failure is a whole mood, and it's an ERR_PTR one, fr fr)
π₯ SEE ALSO π₯
- Kernel file
./drivers/clk/keystone/sci-clk.c struct sci_clk_provider(9)struct sci_clk(9)sci_clk_prepare(9)sci_clk_unprepare(9)sci_clk_is_prepared(9)sci_clk_recalc_rate(9)sci_clk_determine_rate(9)sci_clk_set_rate(9)sci_clk_get_parent(9)sci_clk_set_parent(9)_sci_clk_build(9)ti_sci_clk_probe(9)ti_sci_clk_remove(9)
ngl, that's the whole clock family in one SEE ALSO β go read your siblings, bestie, they're all iconic πβ¨
and that's a wrap, babe π¬ source lives in ./drivers/clk/keystone, dated October 2026 β periodt π
ππ
π¦ 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