clk_enable_regmap(9)
π clk_enable_regmap β from the Kernel API Manual, section 9, bestie π
Okay so picture this: you're a kernel clock driver, you're doing all your register I/O through regmap, and your enable operation is literally always the same three lines. Girl. Same. That's exactly why this function exists β it's the standard enable() for regmap users, and it's about to save you so much code. β¨
β¨ SYNOPSIS β¨
int clk_enable_regmap (struct clk_hw *hw );
π«Ά ARGUMENTS π«Ά
hwβ the clk you're operating on. That's it, that's the whole argument. Main character energy, honestly. π
πΈ DESCRIPTION πΈ
So here's the vibe: if your clocks use regmap for their register I/O, you set the enable_reg and enable_mask fields in your struct clk_regmap, and then you just point this function at your enable operation. Done. No cap. π¦
It's giving "write less boilerplate," it's giving "the framework handles it," and it genuinely saves you some code. Since these clocks already know where the enable bit lives and which bit it is, there's no reason for every single driver to hand-roll the same thing. Reuse the icon, periodt. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/clk/qcom/clk-regmap.cπ clk_is_enabled_regmap(9)clk_disable_regmap(9)devm_clk_register_regmap(9)
ngl, if you're poking around clk-regmap.c anyway, those three siblings up there are your next stops β like a little friend group of regmap clock helpers. ππ«Ά
And that's the whole page, bestie! π This lil' gem comes to you from ./drivers/clk/qcom, dated October 2026, and it's filed under clk_enable_regmap(9) in the Kernel API Manual β go forth and stop reimplementing enable, 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