ingenic_cgu_register_clocks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–

  • 0 on success πŸŽ‰ β€” the good ending, the slay ending
  • -errno if 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