sci_clk_recalc_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 matters
  • parent_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:

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