STRUCT CLK_WZRD_DIVIDER(9)
π« struct clk_wzrd_divider π«
okay bestie, so we're deep in the Kernel API Manual for the clk_wzrd glow-up era, and this is literally the struct page for struct clk_wzrd_divider β clock divider specific to clk_wzrd. yes, it's giving niche Xilinx clock wizardry and we're obsessed. π§β¨
πΈ SYNOPSIS πΈ
here's the whole struct, copy-paste-coded exactly how the kernel gods wrote it:
struct clk_wzrd_divider {
struct clk_hw hw;
void __iomem *base;
u16 offset;
u8 shift;
u8 width;
u8 flags;
const struct clk_div_table *table;
u32 m;
u32 m_frac;
u32 d;
u32 o;
u32 o_frac;
spinlock_t *lock;
};
π Members π
every field, no gatekeeping, fr fr:
hwβ the handle that vibes between the common clock interfaces and the hardware-specific ones. it's the bridge, the main character connector π₯baseβ base address of the register that's holding the divider. like the address of the whole apartment building πoffsetβ offset address of the register containing the divider. which specific room, yk? πshiftβ the shift to the divider's bit field. gotta slide into position β¨widthβ width of the divider bit field. how many bits we're working with πflagsβ theclk_wzrddivider flags. the little personality settings π¦tableβ array of value/divider pairs, and heads up bestie: the last entry should havediv = 0. that's the terminator, it's mandatory, no cap πmβ value of the multiplier πm_fracβ fractional value of the multiplier. the spicy decimal part π₯dβ value of the common divider πoβ value of the leaf divider πo_fracβ value of the fractional leaf divider. leaf but make it precise πΈlockβ register lock. keeps everything from getting messy at the same time π
π SEE ALSO π
go touch grass in these, iykyk:
- Kernel file
./drivers/clk/xilinx/clk-xlnx-clock-wizard.cstructclk_wzrd(9)
so yeah, that's the whole struct, every member accounted for, nothing skipped because we don't do that here π
ngl this page was brought to you straight out of./drivers/clk/xilinxβ the October 2026 drop of the Kernel API Manual forstruct clk_wzrd_divider(9). slay, periodt, 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