omap_cm_module_disable(9)
π omap_cm_module_disable(9) β Kernel API Manual π
okay so bestie, welcome to the omap_cm_module_disable page from the Kernel API Manual β¨ this is the one that turns a module off, and honestly it's giving "lights out, everyone go home" energy π¦
β¨ NAME β¨
omap_cm_module_disable β disable a module π€
πΈ SYNOPSIS πΈ
int omap_cm_module_disable (u8 part , u16 inst , u16 clkctrl_offs );
like... three args, one int back, no cap π«Ά
π ARGUMENTS π
partβ the PRCM partition π that's theu8oneinstβ the PRCM instance π§ that's theu16clkctrl_offsβ theCM_CLKCTRLregister offset for the module π this is where the module actually lives in register-land
π₯ DESCRIPTION π₯
So what it does is: it disables clocks for a module identified by (part, inst, clkctrl_offs), which makes its IO space inaccessible π like the door's locked and the lights are off, the module is not taking visitors.
Return values, fr fr:
- returns
0upon success β slay - returns
-EINVALif no per-SoCmodule_disablefunction pointer has been registered π like nobody signed up to do the job, so the call bounces
lowkey important: this isn't just "pause the clock", it's "IO space inaccessible" β so don't go poking at that module's registers after this, bestie π
π¦ SEE ALSO π¦
Kernel file ./arch/arm/mach-omap2/cm_common.c, plus the whole friend group π
cm_split_idlest_reg(9)omap_cm_wait_module_ready(9)omap_cm_wait_module_idle(9)omap_cm_module_enable(9)cm_register(9)cm_unregister(9)omap2_cm_base_init(9)omap_cm_init(9)
and that's the page, periodt π
this little gem lives over in ./arch/arm/mach-omap2 and the docs are dated October 2026 β catch you in the next man page, 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