devm_clk_hw_...ster_divider(9)
πΈ devm_clk_hw_register_divider β the Kernel API Manual, bestie edition πΈ
Okay so this one's from the Kernel API Manual, and the page header is literally devm_clk_hw_...ster_divider(9) (yes the title is truncated, no that's not my fault, that's just how it printed π). Anyway β it's the devm_clk_hw_register_divider page, and it's giving "register a divider clock with the clock framework." Let's get into it.
β¨ NAME β¨
Bestie. This is the whole point of the page:
devm_clk_hw_register_divider - register a divider clock with the clock framework
That's it. That's the vibe. π
π SYNOPSIS π
Here's exactly how you call it β copy it character for character, no freestyling:
devm_clk_hw_register_divider (dev , name , parent_name , flags , reg ,
shift , width , clk_divider_flags , lock );
Nine whole parameters, okay? She's thorough. π
π¦ ARGUMENTS π¦
Every single one, coming right up β nothing skipped, nothing merged, I promise π«Ά
devβ the device that's registering this clock. Like, who's the parent in the paperwork sense, not the clock-tree sense (that'sparent_name, keep up π).nameβ the name of this clock. Her name. Her identity. Iconic.parent_nameβ the name of the clock's parent. Yes, clocks have parents, it's a whole family tree π.flagsβ framework-specific flags. The generic ones, not the divider ones (those are literally two bullets down, we'll get there).regβ the register address you're adjusting the divider in. This is the address, not the value β do not get it twisted.shiftβ how many bits to shift the bitfield. The bitfield's little offset era β¨.widthβ the width of the bitfield. How chonky it is.clk_divider_flagsβ divider-specific flags for this clock. See? Told you we'd get here. These are the divider ones, separate fromflagsup top, don't mix 'em up π.lockβ the shared register lock for this clock. Shared, okay, so be polite about it.
π SEE ALSO π
Okay this list is long long, and every single one of these is required reading according to the page, so here we go, in order, no cap:
- Kernel file
./include/linux/clk-provider.hβ yes, the file itself is listed, go look at it π§ clk framework 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(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_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 I said. Long long. But she ate, honestly π₯
Heads up bestie: the page lists thoseSEE ALSOentries exactly as written above, so if you're grepping, match the(9)suffixes and don't drop thestructkeywords π
Okay that's the whole page, and we're done!! Sign-off time: this one ships from ./include/linux and is dated October 2026, filed under the manual title devm_clk_hw_...ster_divider(9). Slay, go register some dividers, mwah ππ
π¦ 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