omap_cm_module_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the u8 one
  • inst β€” the PRCM instance 🧚 that's the u16
  • clkctrl_offs β€” the CM_CLKCTRL register 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 0 upon success ⭐ slay
  • returns -EINVAL if no per-SoC module_disable function 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 πŸ’–


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