sci_clk_set_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sci_clk_set_rate β€” like, the manual page, bestie

okay so this is sci_clk_set_rate(9) from the Kernel API Manual and it's genuinely one of the shorter ones so we can absolutely get through it together 🫢


✨ NAME ✨

sci_clk_set_rate β€” sets the rate for a TI SCI clock, no cap πŸ”₯


✨ SYNOPSIS ✨

int sci_clk_set_rate (struct clk_hw *hw , unsigned long rate , unsigned
       long parent_rate );

like yes the line breaks are ugly, that's just how it's formatted in the source, we don't judge πŸ’€


✨ ARGUMENTS ✨

  • hw β€” the clock you're changing the rate for, the main character of this whole operation πŸ‘‘
  • rate β€” the target rate for the clock, i.e. what you want it to be 🎯
  • parent_rate β€” the rate of the clock parent. for TI SCI clocks this one is literally not used, it's just there vibing πŸ™ˆ

✨ DESCRIPTION ✨

so what it does: it sets a clock frequency for a TI SCI clock. that's it, that's the whole vibe ✨

and it returns the TI SCI protocol status β€” so like, check that return value, bestie, it's giving "i have news" 😭

ngl parent_rate is passed in but not used for TI SCI clocks β€” don't stress about it, it's not you, it's the API πŸ’…

✨ SEE ALSO ✨

go look at the kernel file ./drivers/clk/keystone/sci-clk.c β€” that's where the lore lives πŸ“– and while you're there, the whole friend group:


okay that's the page!! πŸŽ€ it lives over in ./drivers/clk/keystone, dated October 2026, and the whole thing is titled sci_clk_set_rate(9) in case you forgot already πŸ’œ slay, go set some rates, ily, bye πŸ¦‹

πŸ“¦ where this page comes from