ingenic_cgu_gate_get(9)
π 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 π₯
trueif the gate bit is set βfalseotherwise β
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
- 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