STRUCT CLK_WZRD_DIVIDER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 β€” the clk_wzrd divider flags. the little personality settings πŸ¦‹
  • table β€” array of value/divider pairs, and heads up bestie: the last entry should have div = 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.c struct clk_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 for struct clk_wzrd_divider(9). slay, periodt, bye bestie πŸ«ΆπŸŽ€
πŸ“¦ where this page comes from