omap2_clkops_enable_clkdm(9)
π omap2_clkops_enable_clkdm(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, that's the manual name, and yes, this page lives in it, right next to all the other little clock functions. we're talking omap2_clkops_enable_clkdm(9) today, and honestly? she's a small function with big main character energy π
πΈ NAME πΈ
omap2_clkops_enable_clkdm β increment usecount on clkdm of @hw π
like, that's literally the whole job description. increment the usecount. on the clkdm. of @hw. she's focused. she's not doing extra. periodt.
π SYNOPSIS π
int omap2_clkops_enable_clkdm (struct clk_hw *hw );
one function, one argument, one int coming back at you. no cap, that's it π«Ά
π¦ ARGUMENTS π¦
hwβ astruct clk_hw *of the clock being enabled. that's the clock you're turning on, bestie, she's the one getting the glow-up β¨
π₯ DESCRIPTION π₯
okay so here's the vibe: this function increments the usecount of the clockdomain of the clock that hw points to. it's giving "keep track of who's using this thing" energy, and it does it by bumping that number up by one π
and the cute part? if the usecount is 1, the clockdomain will be "enabled." (yes, in quotes in the original, so we're keeping the quotes β she's enabled, with a little sparkle β¨). first one in turns on the lights, iykyk.
now the part where you gotta pay attention, bestie, because this is the only needed for clause and it matters π
this is Only needed for clocks that don't useomap2_dflt_clk_enableas their enable function pointer. if your clock already usesomap2_dflt_clk_enable, you do not need this. she's for the special cases. the ones doing their own thing. the individuallists π
and what does she return? so glad you asked, because it's one of three things:
- she passes along the return value of
clkdm_clk_enableβ whatever that gives back, she hands it straight to you, no edits, no notes π«‘ -EINVALifhwis not associated with a clockdomain β i.e. there's no clkdm to even talk about, and she's telling you that gently but firmly π0if clock framework-based clockdomain control is not implemented β so like, the mechanism isn't there, nothing to do, here's a zero, have a nice day π
β SEE ALSO β
- Kernel file
./drivers/clk/ti/clockdomain.cβ go read the source, bestie, it's right there π omap2_clkops_disable_clkdm(9)β the other half of the duo, the "turn it back off" one π¦omap2_init_clk_clkdm(9)β the setup era πti_dt_clockdomains_setup(9)β device tree clockdomain setup, very demure, very mindful πΈ
kisses and good luck out there π this page was brought to you by the source tree at ./drivers/clk/ti and it's dated October 2026 β so yeah, she's from the future, and she slayed π
β¨π
π¦ 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