STRUCT SG2042_MUX_CLOCK(9)
π struct sg2042_mux_clock(9) β the Kernel API Manual, bestie edition β¨
Okay so this is the manual page for struct sg2042_mux_clock from the Kernel API Manual β it's literally the mux clock struct and she is everything. Let's get into it π
β¨ NAME β¨
struct sg2042_mux_clock β Mux clock, periodt π
πΈ SYNOPSIS πΈ
Like, here's the whole vibe, character for character, no cap:
struct sg2042_mux_clock {
struct clk_hw hw;
unsigned int id;
u32 offset_select;
u8 shift;
u8 width;
struct notifier_block clk_nb;
u8 original_index;
};
It's giving very structured, very demure π¦
π«Ά Members π«Ά
These are the fields, and yes we're going through all of them because every single one eats π
hwβ theclk_hwfor initialization. She's the main character energy of the whole struct tbh β¨idβ used to mapclk_onecell_data. Lowkey just doing her mapping job, iconic πoffset_selectβ offset of mux selection registers. And listen, NOTE: MUX registers are ALL in CLOCK! All of them. Every single one. Fr fr, don't go looking elsewhere πshiftβ shift of "Clock Select" in the mux selection register. Just a lil shift, doing lil shift things πwidthβ width of "Clock Select" in the mux selection register. How wide is she? This wide πclk_nbβ used for notification. She's the notifier block, she's on call, she's ready π§original_indexβ set by notifier callback. Not by you, bestie β the callback does it. Respect the process π
π SEE ALSO π
- Kernel file
./drivers/clk/sophgo/clk-sg2042-clkgen.c struct sg2042_divider_clock(9)πstruct sg2042_gate_clock(9)π₯
iykyk β go read those next, they're also slay β¨
Okay that's the whole page, bestie π«Ά This came to you from ./drivers/clk/sophgo, dated October 2026, and it's giving source-and-version realness. Byeee ππΈ
π¦ 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