devm_clk_hw...r_fixed_rate(9)
π NAME π
devm_clk_hw_register_fixed_rate β okay bestie, this one registers a fixed-rate clock with the clock framework β¨ and the "devm" part means it's all managed for you, no cap π
This is a page from the Kernel API Manual, and yes the header literally reads devm_clk_hw...r_fixed_rate(9) β truncated with the little dots because it's that long, iykyk π
πΈ SYNOPSIS πΈ
devm_clk_hw_register_fixed_rate(dev, name, parent_name, flags, fixed_rate);
π¦ ARGUMENTS π¦
devβ the device that's registering this clock. it's giving "who's the parent in this relationship" energy πnameβ the name of this clock, her whole identity fr πparent_nameβ the name of the clock's parent. yes she has a mother πflagsβ framework-specific flags. the little toggles, the vibe settings, theβ¨customizationβ¨fixed_rateβ the non-adjustable clock rate. as in, she does not change. iconic, unbothered, locked in π₯
π quick vibe check: fixed_rate is non-adjustable β that's literally the whole point of the function. don't come for her asking for a different rate, bestie.
π SEE ALSO π
Kernel file ./include/linux/clk-provider.h β go read her, she's the source of truth π«Ά
And then the clk framework flags and the whole extended fam, because this function has many cousins and they all deserve their moment:
flags(9)struct clk_rate_request(9)struct clk_duty(9)struct clk_spread_spectrum(9)struct clk_ops(9)struct clk_parent_data(9)struct clk_init_data(9)struct clk_hw(9)struct clk_fixed_rate(9)clk_hw_register_fixed_rate(9)devm_clk_hw_register_fixed_rate_parent_data(9)clk_hw_register_fixed_rate_parent_hw(9)clk_hw_register_fixed_rate_parent_data(9)clk_hw_register_fixed_rate_with_accuracy(9)clk_hw_register_fixed_rate_with_accuracy_parent_hw(9)clk_hw_register_fixed_rate_with_accuracy_parent_data(9)clk_hw_register_fixed_rate_parent_accuracy(9)struct clk_gate(9)clk_hw_register_gate(9)clk_hw_register_gate_parent_hw(9)clk_hw_register_gate_parent_data(9)devm_clk_hw_register_gate(9)devm_clk_hw_register_gate_parent_hw(9)devm_clk_hw_register_gate_parent_data(9)struct clk_divider(9)clk_register_divider(9)clk_hw_register_divider(9)clk_hw_register_divider_parent_hw(9)clk_hw_register_divider_parent_data(9)clk_hw_register_divider_table(9)clk_hw_register_divider_table_parent_hw(9)clk_hw_register_divider_table_parent_data(9)devm_clk_hw_register_divider(9)devm_clk_hw_register_divider_parent_hw(9)devm_clk_hw_register_divider_parent_data(9)devm_clk_hw_register_divider_table(9)struct clk_mux(9)struct clk_fixed_factor(9)devm_clk_hw_register_fixed_factor_parent_hw(9)struct clk_fractional_divider(9)struct clk_multiplier(9)clk_hw_get_dev(9)clk_hw_get_of_node(9)
like, that's a whole group chat of clock functions and honestly? every single one of them ate π β¨
anyway that's the page, bestie β she's short, she's sweet, she registers a clock that does not move, and she cleans up after herself thanks to devm. periodt π§ββοΈ
sign-off szn: this lil beauty lives in ./include/linux, dropped October 2026, and she's page devm_clk_hw...r_fixed_rate(9) of the Kernel API Manual β mwah, go build something cute with her ππ
π¦ 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