clk_is_enabled_regmap(9)
π NAME π
ok so bestie, welcome to the clk_is_enabled_regmap page β it's the standard is_enabled() situation for all the regmap girlies out there. that's the whole vibe. this is from the Kernel API Manual btw, so you know it's official βΉοΈβ¨
β¨ SYNOPSIS β¨
int clk_is_enabled_regmap (struct clk_hw *hw );
like, you hand it a hw and it gives you back an int, that's it, no drama π
π«Ά ARGUMENTS π«Ά
hwβ the clk you wanna operate on. that's your main character right there π
πΈ DESCRIPTION πΈ
okay so here's the tea β: clocks that use regmap for their register I/O can literally just set the enable_reg and enable_mask fields in their struct clk_regmap β and then use this function as their is_enabled operation. and boom π₯ you just saved yourself some code. iconic behavior honestly, we love a lazy-girl optimization πβ¨
ngl this is the "why write more code when the struct fields do it for you" energy and I'm obsessed π
π¦ SEE ALSO π¦
- the kernel file
./drivers/clk/qcom/clk-regmap.c(go read it, iykyk π) clk_enable_regmap(9)β the enable bestie π’clk_disable_regmap(9)β the disable bestie π΄devm_clk_register_regmap(9)β the devm registration bestie π§
and that's a wrap, bestie!! π this little gem lives in ./drivers/clk/qcom, dated October 2026 β drink some water, close the tab, and go slay your day ππ«Άπ
π¦ 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