clk_set_rate_exclusive(9)
πΈ 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:
clk notifier callback types(9)struct clk_notifier(9)struct clk_notifier_data(9)struct clk_bulk_data(9)clk_notifier_register(9)clk_notifier_unregister(9)devm_clk_notifier_register(9)clk_get_accuracy(9)clk_set_phase(9)clk_get_phase(9)clk_set_duty_cycle(9)clk_get_scaled_duty_cycle(9)clk_is_match(9)clk_rate_exclusive_get(9)devm_clk_rate_exclusive_get(9)clk_rate_exclusive_put(9)clk_save_context(9)clk_restore_context(9)clk_prepare(9)clk_unprepare(9)clk_is_enabled_when_prepared(9)clk_get(9)clk_bulk_get(9)clk_bulk_get_all(9)clk_bulk_get_optional(9)devm_clk_bulk_get(9)devm_clk_bulk_get_optional(9)devm_clk_bulk_get_enable(9)devm_clk_bulk_get_optional_enable(9)devm_clk_bulk_get_all(9)devm_clk_bulk_get_all_enabled(9)devm_clk_get(9)devm_clk_get_prepared(9)devm_clk_get_enabled(9)devm_clk_get_optional(9)devm_clk_get_optional_prepared(9)devm_clk_get_optional_enabled(9)devm_clk_get_optional_enabled_with_rate(9)devm_get_clk_from_child(9)clk_enable(9)clk_bulk_enable(9)clk_disable(9)clk_bulk_disable(9)clk_get_rate(9)clk_put(9)clk_bulk_put(9)clk_bulk_put_all(9)devm_clk_put(9)clk_round_rate(9)clk_set_rate(9)clk_has_parent(9)clk_set_rate_range(9)clk_set_min_rate(9)clk_set_max_rate(9)clk_set_parent(9)clk_get_parent(9)clk_get_sys(9)clk_drop_range(9)clk_get_optional(9)
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
- 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