STRUCT INGENIC_CGU_GATE_INFO(9)
π struct ingenic_cgu_gate_info(9) β like, the whole glow-up
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil struct page and honestly? it's giving "small but iconic." no cap, it's literally just four fields and yet it runs the whole "is this clock on or not" situation. obsessed.
πΈ NAME πΈ
struct ingenic_cgu_gate_info β the tea on a clock gate, fr fr π«Ά
think of it as the little info card that tells the kernel how to flip one specific gate bit on and off. very main character of it.
π SYNOPSIS π
struct ingenic_cgu_gate_info {
unsigned reg;
u8 bit;
bool clear_to_gate;
u16 delay_us;
};
that's it. that's the struct. four members, zero drama, highkey slaying π
π¦ Members π¦
regβ the offset of the gate control register within the CGU. like, where in the CGU's little house this register lives. you gotta know the address before you knock, yk? πbitβ the offset of the bit in the register that controls the gate. soreggets you to the right register, andbitgets you to the exact bit inside it. precision queen behavior πclear_to_gateβ if this is set, the clock is gated when the bit is cleared. yes bestie, that means it's inverted from what your brain probably expects π so like, read it twice.delay_usβ delay in microseconds after which the clock is considered stable. the "give it a sec, she's still getting ready" field. β³β¨
π₯ SEE ALSO π₯
the whole squad, all in the kernel file ./drivers/clk/ingenic/cgu.h π:
struct ingenic_cgu_pll_info(9)struct ingenic_cgu_mux_info(9)struct ingenic_cgu_div_info(9)struct ingenic_cgu_fixdiv_info(9)struct ingenic_cgu_custom_info(9)struct ingenic_cgu_clk_info(9)struct ingenic_cgu(9)struct ingenic_clk(9)ingenic_cgu_new(9)ingenic_cgu_register_clocks(9)
like, go read all of them, they're literally all connected π it's a whole friend group.
okay that's the page!! mwah π this little legend lives over in ./drivers/clk/ingenic and it was dated October 2026 β and yeah, the header still says struct ingen...gu_gate_info(9) because truncation is eternal, bestie. bye, ily, go gate some clocks responsibly πβπ
π¦ 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