STRUCT INGENIC_CGU_MUX_INFO(9)
π struct ingenic_cgu_mux_info(9) π
okay so bestie, we're deep in the kernel API manual today β like, struct ingenic_cgu_mux_info(9) territory β and honestly? this little guy is giving main character energy for clock muxes. it's the struct that tells you everything about a clock mux, no cap. π
β¨ NAME β¨
struct ingenic_cgu_mux_info β information about a clock mux. yes, that's literally it, and it's iconic for it. π
πΈ SYNOPSIS πΈ
here's the whole vibe, verbatim, don't touch a character:
struct ingenic_cgu_mux_info {
unsigned reg;
u8 shift;
u8 bits;
};
look at her. three members. zero drama. obsessed. π¦
π Members π
okay bestie let's meet the cast, one by one:
regβ the offset of the mux control register within the CGU. think of it as where in the CGU this mux's control register lives. it's aunsigned, it's the address-y one, she's the navigator of the group. πΊοΈshiftβ the number of bits to shift the mux value by. that's, like, the index of the lowest bit of the mux value within its control register β the original says "ie." there so you know it's the definition, and we're keeping that. so:shift= how far you slide over before you find the mux value's lowest bit. lowkey the most underrated member ngl. π₯bitsβ the size of the mux value in bits. how many bits wide is this whole mux situation? that's whatbitsis telling you.u8, tiny queen, huge responsibility. π
fr fr, keep every value exactly as written βunsigned reg,u8 shift,u8 bitsβ because that's the whole struct and we do not mess with kernel API facts. periodt. π
π SEE ALSO π
if you're gonna stan this struct you gotta know her friends, so here's the whole group chat, all from the kernel file ./drivers/clk/ingenic/cgu.h:
struct ingenic_cgu_pll_info(9)struct ingenic_cgu_div_info(9)struct ingenic_cgu_fixdiv_info(9)struct ingenic_cgu_gate_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)
go read all of them, iykyk. π
and that's the whole page, bestie! this one lives in ./drivers/clk/ingenic β the October 2026 edition of the Kernel API Manual, with struct ingenic_cgu_mux_info(9) right there in the header and footer like the little icon she is. mwah, catch you on the next page! π«Άβ¨π
π¦ 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