STRUCT INGENIC_CGU_CLK_INFO(9)
πΈ NAME πΈ
okay so bestie, this page is struct ingenic_cgu_clk_info(9) from the Kernel API Manual, and it's literally information about a clock. That's the whole NAME vibe. no cap π
β¨ SYNOPSIS β¨
Here's the struct in all its iconic glory β copy it exactly, bestie, because every field is the moment:
struct ingenic_cgu_clk_info {
const char *name;
enum {
CGU_CLK_NONE = 0,
CGU_CLK_EXT = BIT(0),
CGU_CLK_PLL = BIT(1),
CGU_CLK_GATE = BIT(2),
CGU_CLK_MUX = BIT(3),
CGU_CLK_MUX_GLITCHFREE = BIT(4),
CGU_CLK_DIV = BIT(5),
CGU_CLK_FIXDIV = BIT(6),
CGU_CLK_CUSTOM = BIT(7),
} type;
unsigned long flags;
int parents[4];
union {
struct ingenic_cgu_pll_info pll;
struct {
struct ingenic_cgu_gate_info gate;
struct ingenic_cgu_mux_info mux;
struct ingenic_cgu_div_info div;
struct ingenic_cgu_fixdiv_info fixdiv;
};
struct ingenic_cgu_custom_info custom;
};
};
quick vibe check: thetypebitmask is formed from thoseCGU_CLK_*values right there in the enum βCGU_CLK_NONE,CGU_CLK_EXT,CGU_CLK_PLL,CGU_CLK_GATE,CGU_CLK_MUX,CGU_CLK_MUX_GLITCHFREE,CGU_CLK_DIV,CGU_CLK_FIXDIV,CGU_CLK_CUSTOM. iykyk β¨
π Members π
nameβ name of the clock. iconic. πtypeβ a bitmask formed fromCGU_CLK_*values. yep, a bitmask, not a single vibe. β¨flagsβ common clock flags to set on this clock. set them, bestie. π«Άparentsβ an array of the indices of potential parents of this clock within theclock_infoarray of the CGU, or-1in entries which correspond to no valid parent. literally the parent index list, and-1means no valid parent there. no cap. π{unnamed_union}β anonymous. it's giving unnamed union energy. πpllβ information valid iftypeincludesCGU_CLK_PLL. π₯{unnamed_struct}β anonymous. unnamed struct moment. π¦gateβ information valid iftypeincludesCGU_CLK_GATE. πmuxβ information valid iftypeincludesCGU_CLK_MUX. πdivβ information valid iftypeincludesCGU_CLK_DIV. πfixdivβ information valid iftypeincludesCGU_CLK_FIXDIV. πcustomβ information valid iftypeincludesCGU_CLK_CUSTOM. π
π SEE ALSO π
Kernel file ./drivers/clk/ingenic/cgu.h β and the whole squad is: 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_gate_info(9), struct ingenic_cgu_custom_info(9), struct ingenic_cgu(9), struct ingenic_clk(9), ingenic_cgu_new(9), ingenic_cgu_register_clocks(9). go read them, bestie. π
mwah π source/version: ./drivers/clk/ingenic; date: October 2026; manual: struct ingenic_cgu_clk_info(9). bye bestie! π
π¦ 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