ingenic_cgu_gate_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ingenic_cgu_gate_get β€” the Kernel API Manual moment (section 9, bestie)

okay so first of all, the manual page name is ingenic_cgu_gate_get(9) and yes we're in the Kernel API Manual, section 9, and this whole thing is about reading one (1) single clock gate register bit. tiny function, big main character energy. ✨


✨ NAME ✨

ingenic_cgu_gate_get β€” literally just "get the value of clock gate register bit". that's it. that's the whole job. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

bool ingenic_cgu_gate_get (struct ingenic_cgu *cgu , const struct
       ingenic_cgu_gate_info *info );

bestie look at her. she returns a bool, she takes a struct ingenic_cgu * called cgu, and a const struct ingenic_cgu_gate_info * called info. that's the whole signature, no cap. πŸ’–


🌸 ARGUMENTS 🌸

  • cgu β€” a reference to the CGU whose registers should be read. like, the actual hardware object you're peeking at. πŸ‘€
  • info β€” the info struct describing the gate bit. she's the little map that tells you which bit you're asking about. πŸ—ΊοΈ

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea: this function retrieves the state of the clock gate bit described by info. you hand it the CGU and the info struct, and it goes and finds out whether that bit is set or not. simple. iconic. slay. πŸ’…

⚠️ but listen β€” the caller must hold cgu->lock. this is not a suggestion, it's not a vibe, it's a requirement. lock it up before you call, fr fr. πŸ”’

πŸ”₯ RETURN πŸ”₯

  • true if the gate bit is set βœ…
  • false otherwise ❌

boom. binary. binary is kind of cunty of her actually. 🫢


🧚 SEE ALSO 🧚

  • Kernel file ./drivers/clk/ingenic/cgu.c β€” go read the source, iykyk πŸ“–
  • ingenic_cgu_gate_set(9) β€” the sibling that sets the bit instead of just reading it. the louder sister. πŸ’œ

and that's the whole page!! 🌈

sign-off time: this cutie lives in ./drivers/clk/ingenic, the date on the tin says October 2026, and the whole thing is brought to you by ingenic_cgu_gate_get(9) β€” the same name at the top, the bottom, and in everyone's heart. mwah. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from