clk_is_enabled_regmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ¦‹


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