STRUCT INGENIC_CGU_MUX_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a unsigned, 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 what bits is 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