STRUCT CLK_REGMAP_GATE_DATA(9)
β¨ struct clk_regmap_gate_data(9) β¨
okay so bestie, welcome to the kernel API manual page for struct clk_regmap_gate_data β it's giving "tiny struct, big responsibilities" and honestly? iconic. π
π NAME π
struct clk_regmap_gate_data β the regmap-backed gate's very own data bundle, like its little starter pack of specifics π«Ά
πΈ SYNOPSIS πΈ
struct clk_regmap_gate_data {
unsigned int offset;
u8 bit_idx;
u8 flags;
};
literally three fields. that's it. she's compact and she knows it β¨
π¦ Members π¦
offsetβ the offset of the register that controls the gate. that's where the gate lives, that's her address, periodt πbit_idxβ the single bit that controls the gate. one bit. one job. main character energy fr fr πflagsβ hardware-specific flags. the personality settings, if you will π
π Description π
so about flags: they're the same as clk_gate, except CLK_GATE_HIWORD_MASK β which is ignored here. not me pointing that out twice, but like, it's important π«Ά
heads up bestie: CLK_GATE_HIWORD_MASK gets straight-up ignored in this struct. don't come for her, she's just built different π
β SEE ALSO β
- Kernel file
./drivers/clk/meson/clk-regmap.h struct clk_regmap(9)struct clk_regmap_div_data(9)struct clk_regmap_mux_data(9)
go read the whole squad, they're all linked up and lowkey obsessed with each other π₯
and that's the vibe check, bestie β page came from ./drivers/clk/meson, dated October 2026, and it's the struct clk_regmap_gate_data(9) manual through and through. slay, go gate some clocks ππ§
π¦ 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