__clk_determine_rate(9)
π NAME π
Okay bestie, this is the Kernel API Manual page for __clk_determine_rate(9) β and its whole personality is: get the closest rate actually supported by a clock. That's the name, that's the vibe. π
πΈ SYNOPSIS πΈ
Here's the signature, verbatim, no edits, no cap:
int __clk_determine_rate (struct clk_hw *hw , struct clk_rate_request
*req );
β¨ ARGUMENTS β¨
hwβ this is the clock whose rate we're determining (astruct clk_hw *), bestie.reqβ this is the target rate request (astruct clk_rate_request *). Slay.
π¦ DESCRIPTION π¦
Useful for clk_ops such as .set_rate and .determine_rate. That's the whole description, and honestly it's giving small-but-mighty. If you're writing one of those clk_ops callbacks, this helper is your new bestie. π
π SEE ALSO π
Okay so this list is huge β not me hyperlinking the entire kernel clock subsystem. But every single one is here, no cap:
- 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_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_speculate_rates(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)
Signing off from ./drivers/clk β October 2026 β Kernel API Manual, __clk_determine_rate(9). Bye bestie, go determine some rates! πβ¨π«Ά
π¦ 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