sci_clk_recalc_rate(9)
π sci_clk_recalc_rate (Kernel API Manual energy)
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is sci_clk_recalc_rate(9), and honestly? she's a tiny little function with one job and she does it. no cap.
π NAME π
sci_clk_recalc_rate β get the clock rate for a TI SCI clock πΈ
like. that's it. that's the whole vibe. she recalculates the rate. iconic behavior.
β¨ SYNOPSIS β¨
unsigned long sci_clk_recalc_rate (struct clk_hw *hw , unsigned long
parent_rate );
yup, she takes two things, she returns an unsigned long. simple. elegant. ate. π«Ά
π¦ ARGUMENTS π¦
hwβ the clock you wanna get the rate for π this is the one that actually mattersparent_rateβ the parent rate, handed to you by the common clock framework, and nglβ¦ it is literally not used π the framework is just being polite
π DESCRIPTION π
so what she does is: she gets the current clock rate of a TI SCI clock. that's the whole bit. π
she returns the current clock rate π β or zero if it fails π (yes, zero is the "something went wrong" number here, so if you see a 0 coming out of this, do a little vibe check on your error handling, fr fr).
π₯ SEE ALSO π₯
the whole friend group, ok:
- 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_determine_rate(9)sci_clk_set_rate(9)sci_clk_get_parent(9)sci_clk_set_parent(9)_sci_clk_build(9)sci_clk_get(9)ti_sci_clk_probe(9)ti_sci_clk_remove(9)
squad. assembled. π
okay that's the whole page bestie, mwah π β this lil masterpiece lives in ./drivers/clk/keystone, it's dated October 2026, and it's brought to you by the Kernel API Manual (yes the version is literally just the manpage name sci_clk_recalc_rate(9), we love a self-titled era π). bye bestie, go read your clock rates π§ββοΈβ¨
π¦ 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