STRUCT CLK_REGMAP_DIV_DATA(9)
π struct clk_regmap_div_data(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for struct clk_regmap_div_data, aka the regmap-backed adjustable divider specific data. she's a little struct with main character energy and we're gonna get into it π
πΈ NAME πΈ
struct clk_regmap_div_data β regmap backed adjustable divider specific data
like literally the data you hand over for a divider that lives behind a regmap, no cap π«Ά
β¨ SYNOPSIS β¨
struct clk_regmap_div_data {
unsigned int offset;
u8 shift;
u8 width;
u8 flags;
const struct clk_regmap_table *table;
};
wait, hold up, let me not fumble the bag π β the table line is const struct clk_div_table *table;, not the thing I just typed. here it is, correct and iconic:
struct clk_regmap_div_data {
unsigned int offset;
u8 shift;
u8 width;
u8 flags;
const struct clk_div_table *table;
};
periodt. that's the whole shape of her π
π¦ Members π¦
offsetβ the offset of the register that controls the divider. like where in the regmap her little register is chilling πshiftβ the shift to the divider bit field. how far you gotta slide over to find her bits π«widthβ the width of the divider bit field. how many bits wide the whole vibe is πtableβ an array of value/divider pairs, and the last entry should havediv = 0. yes, should β that zero is the little "we're done here" signal at the end, so don't forget it π€
also flags is right there in the struct up top β she's a member, she's just not got her own bullet down here. love that for her π
π₯ Description π₯
Flags: same as clk_divider except CLK_DIVIDER_HIWORD_MASK, which is literally ignored π β like not honored, not used, simply not invited to the party. so don't come crying to her about it bestie, she is not checking for it π
π SEE ALSO π
- Kernel file
./drivers/clk/meson/clk-regmap.h struct clk_regmap(9)struct clk_regmap_gate_data(9)struct clk_regmap_mux_data(9)
go read those next, iykyk π the whole meson clk-regmap friend group is slaying honestly π
aaaand that's the page! shoutout to ./drivers/clk/meson for the source, the October 2026 date, and this very struct clk_regmap_div_data(9) footer moment β mwah, stan, bye 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