ingenic_cgu_register_clocks(9)
π ingenic_cgu_register_clocks β like, the Kernel API Manual entry, bestie β¨
okay so picture this: you're deep in the kernel, you've got a CGU, and nobody knows about your clocks yet. tragic. this function is the glow-up moment where everybody gets introduced. π
πΈ NAME πΈ
ingenic_cgu_register_clocks β registers the clocks</p>, that's literally the whole thing and honestly? iconic.
π¦ SYNOPSIS π¦
int ingenic_cgu_register_clocks (struct ingenic_cgu *cgu );
like, you hand it a cgu and it hands you back an int. simple. gorgeous. no notes. π
π ARGUMENTS π
cguβ pointer to cgu data. yes bestie, that's the whole description, she's lowkey mysterious like that but she's doing her job π«Ά
β¨ DESCRIPTION β¨
So here's the vibe: this function registers the clocks described by the CGU with the common clock framework. like it's making the formal introductions β the CGU already knows who the clocks are, but the common clock framework needs to be put on the group chat too, y'know? iykyk. π
no cap, that's the entire description. it does one thing and it slays at that one thing. π
π RETURN π
0on success π β the good ending, the slay ending-errnoif unsuccessful π β yeah she's gonna tell you what went wrong via the classic negative errno situation
π§ SEE ALSO π§
Kernel file ./drivers/clk/ingenic/cgu.h, plus the whole friend group:
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_clk_info(9)struct ingenic_cgu(9)struct ingenic_clk(9)ingenic_cgu_new(9)
go read them, they're all main character energy in their own way π
ngl if you're here you're probably writing a clock driver. drink some water. check your errno. you've got this. π
mwah π β this page lives in ./drivers/clk/ingenic, it's dated October 2026, and it answers to the name ingenic_cgu_register_clocks(9). periodt. β¨
π¦ 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