clk_set_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– clk_set_rate β€” set the clock rate for a clock source πŸ’–

okay so this is a page from the Kernel API Manual (section 9, the kernel-API girlies) and it's literally all about telling a clock "hey bestie, go this fast now" ✨


🌸 SYNOPSIS 🌸

int clk_set_rate (struct clk *clk , unsigned long rate );

πŸŽ€ ARGUMENTS πŸŽ€

  • clk β€” the clock source πŸ’… like, the actual clock you're setting the rate on
  • rate β€” the desired clock rate in Hz, no cap, this is the number you want it to hit

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is kind of iconic actually: updating the rate starts at the top-most affected clock, and then it walks the tree down to the bottom-most clock that needs updating. like a whole little glow-up relay race down the clock tree 🌈✨

It returns success (0) or a negative errno. that's it, that's the vibe β€” 0 means slay, negative means something went sideways 😭


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/clk.h β€” and honestly the whole clock friend group showed up for this one, so let's give them their moment 🫢


and that's the page, bestie πŸ’œ it lives under ./include/linux in the tree, it's the October 2026 edition of the Kernel API Manual, and it's giving "tiny page, huge friend group" energy fr fr 🌟

πŸ“¦ where this page comes from