STRUCT CCU_DIV_INTERNAL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct ccu_div_internal(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one's a struct page, so grab a strawberry drink πŸ“ and let's get into it β€” it's literally called struct ccu_div_internal, aka the Internal divider description. internal! like, it's for the kernel's eyes only, not your ex's πŸ‘€


🌸 SYNOPSIS 🌸

here's the whole lil guy, verbatim, no cap:

struct ccu_div_internal {
    u8 shift;
    u8 width;
    u32 max;
    u32 offset;
    u32 flags;
    struct clk_div_table    *table;
 };

that's it. that's the struct. iconic honestly πŸŽ€


πŸ’… Members πŸ’…

okay so every field, one by one, let's go:

  • shift β€” the bit offset of the divider inside its register. like, where it starts showing up in the bits 🧚
  • width β€” how wide the divider field is in that same register. how many bits it takes up πŸ’«
  • max β€” the maximum value allowed for that divider. and listen, this is the arithmetic value, not the maximum value to be set in the register. those are two different things, don't get it twisted πŸ™ˆ
  • flags β€” the clk_divider flags to apply on this divider. vibes-only, but make them the right vibes ✨
  • table β€” divider table pointer, if applicable. (yes, if applicable β€” sometimes it just doesn't apply, and that's fine 🫢)
ngl the struct also has an offset field up in the synopsis, and the Members list here doesn't say anything about it. just so you know you're not losing it β€” the original keeps it in the struct and doesn't describe it, so we're keeping it exactly like that πŸ’€

πŸ‘‘ Description πŸ‘‘

so what is this thing? basically: that structure represents a single divider, and it's meant to be embedded in other structures that represent the various clock classes. nesting dolls but make it clocks πŸŽ€

and like β€” it is basically a wrapper around the clk_divider functions arguments. that's the whole personality. it wraps, it embeds, it slays πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/clk/sunxi-ng/ccu_div.h β€” go read it, iykyk πŸ“–

and that's the whole page bestie!! πŸ¦‹ this one lives in ./drivers/clk/sunxi-ng, and it's dated October 2026 β€” so, source ./drivers/clk/sunxi-ng, version October 2026, page struct ccu_div_internal(9). periodt. πŸ’œ take care of your dividers and drink some water 🌈⭐

πŸ“¦ where this page comes from