STRUCT CCU_DIV_INTERNAL(9)
β¨ 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β theclk_dividerflags 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
- 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