STRUCT CLK_REGMAP_GATE_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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