clk_set_rate_exclusive(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

clk_set_rate_exclusive β€” set the clock rate and claim exclusivity over clock source. This is the clk_set_rate_exclusive(9) page from the Kernel API Manual, hiii bestie πŸ’–

✨ SYNOPSIS ✨

okay so the signature is literally:

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

πŸŽ€ ARGUMENTS πŸŽ€

  • clk β€” clock source. that’s the clock we’re talking about πŸ‘‘
  • rate β€” desired clock rate in Hz. yes, Hertz, not vibes ✨

πŸ’… DESCRIPTION πŸ’…

okay so this helper function lets drivers atomically set the rate of a producer and claim exclusivity over the rate control of the producer. it’s giving β€œI’m the main character of this clock’s rate now” πŸ’…

It is essentially a combination of clk_set_rate and clk_rate_exclusite_get β€” and yes, that spelling is exactly what the page says, no cap, I’m not editing it fr fr 😭

bestie, the caller must balance this call with a call to clk_rate_exclusive_put. do not leave it hanging, okay? πŸ’€

It returns success (0) or a negative errno. periodt 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file ./include/linux/clk.h is right there, and the whole see-also friend group is:


This cutie came from ./include/linux, dated October 2026, and it’s the clk_set_rate_exclusive(9) page β€” mwah, byeee πŸ’–βœ¨

πŸ“¦ where this page comes from