__clk_speculate_rates(9)
๐ NAME ๐
__clk_speculate_rates โ speculate all rates in the clk subtree. This page is from the Kernel API Manual, bestie, and itโs literally __clk_speculate_rates(9) ๐
.
๐ธ SYNOPSIS ๐ธ
int __clk_speculate_rates (struct clk_core *core , unsigned long
parent_rate );
๐ ARGUMENTS ๐
coreโ first clk in the subtree. like the starting point of the whole rate-speculation stroll.parent_rateโ the"future"rate of clkโs parent. Future as in the rate itโs gonna have, not a prophecy ๐ฎ.
๐ฆ DESCRIPTION ๐ฆ
Okay so __clk_speculate_rates walks the subtree of clks starting with core, speculating rates as it goes and firing off PRE_RATE_CHANGE notifications as necessary. Itโs giving very โrate-change warning systemโ energy โจ.
Unlike __clk_recalc_rates, __clk_speculate_rates exists only for sending pre-rate change notifications and returns early if no clks in the subtree have subscribed to the notifications. So if nobodyโs listening, it dips ๐.
Note bestie: if a clk does not implement the .recalc_rate callback then it is assumed that the clock will take on the rate of its parent. Thatโs the rule, no cap ๐ซถ.
๐ SEE ALSO ๐
The kernel file ./drivers/clk/clk.c is the source file, and here are all the linked besties, in order:
- Kernel file
./drivers/clk/clk.c struct clk_core(9)clk_pm_runtime_get_all(9)clk_pm_runtime_put_all(9)clk_core_get(9)clk_determine_rate_noop(9)clk_rate_exclusive_put(9)clk_rate_exclusive_get(9)clk_unprepare(9)clk_prepare(9)clk_disable(9)clk_gate_restore_context(9)clk_save_context(9)clk_restore_context(9)clk_enable(9)clk_is_enabled_when_prepared(9)clk_hw_init_rate_request(9)clk_hw_forward_rate_request(9)__clk_determine_rate(9)clk_hw_round_rate(9)clk_round_rate(9)__clk_notify(9)__clk_recalc_accuracies(9)clk_get_accuracy(9)__clk_recalc_rates(9)clk_get_rate(9)clk_hw_get_parent_index(9)clk_set_rate(9)clk_set_rate_exclusive(9)clk_set_rate_range(9)clk_set_min_rate(9)clk_set_max_rate(9)clk_get_parent(9)clk_has_parent(9)clk_set_parent(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_debug_register(9)clk_debug_init(9)__clk_core_init(9)clk_core_link_consumer(9)clk_core_unlink_consumer(9)alloc_clk(9)free_clk(9)clk_hw_create_clk(9)clk_hw_get_clk(9)dev_or_parent_of_node(9)clk_register(9)clk_hw_register(9)clk_unregister(9)clk_hw_unregister(9)devm_clk_register(9)devm_clk_hw_register(9)devm_clk_hw_get_clk(9)clk_notifier_register(9)clk_notifier_unregister(9)struct of_clk_provider(9)of_clk_add_provider(9)of_clk_add_hw_provider(9)devm_of_clk_add_hw_provider(9)of_clk_del_provider(9)of_parse_clkspec(9)of_clk_get_from_provider(9)of_clk_get_by_name(9)of_clk_get_parent_count(9)of_clk_parent_fill(9)of_clk_detect_critical(9)of_clk_init(9)
okay thatโs the whole page ๐ source/version is ./drivers/clk, date is October 2026, and yes the page is __clk_speculate_rates(9) โ go speculate those rates responsibly, bestie ๐ซถโจ
๐ฆ 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