_omap4_disable_module(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 _omap4_disable_module(9) β€” like, the whole Kernel API Manual tea 🌸

okay bestie, buckle up, we're getting into the OMAP4 hwmod lore today and honestly it's giving "small function, big friend group" πŸ’… this one lives in the Kernel API Manual and it's here to turn a thing off, which is iconic of it tbh.


✨ NAME ✨

_omap4_disable_module β€” and the page literally says "enable CLKCTRL modulemode on OMAP4"?? yeah. that's what the manpage says, no cap, we're not gonna pretend otherwise. it's the NAME line, it's canon, moving on 🫢 (the function itself disables, we'll get there, don't panic)


πŸ¦‹ SYNOPSIS πŸ¦‹

int _omap4_disable_module (struct omap_hwmod *oh );

πŸŽ€ ARGUMENTS πŸŽ€

  • oh β€” a struct omap_hwmod *. that's it. that's the whole argument list. one (1) hwmod pointer and we're off 🧚

πŸ’– DESCRIPTION πŸ’–

so the actual job: disable the PRCM module mode that's related to the hwmod oh. simple, clean, main character energy ⭐

and the return tea:

  • returns EINVAL if the modulemode is not supported 😭 (rude, but okay)
  • returns 0 in case of success πŸ”₯ (slay, we love a zero)
like literally that's the entire contract. turn off the PRCM module mode for oh, yell EINVAL if modulemode isn't a thing, hand back 0 if it all worked out πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

okay so the source-of-truth kernel file is ./arch/arm/mach-omap2/omap_hwmod.c, and the whole extended friend group shows up in the references. every single one, bestie, I would never leave a single one out, that's not the vibe:

like, the whole omap_hwmod.c friend group said "we're coming to the function and we're bringing everyone" πŸ˜­πŸ’€ iykyk


that's the page, bestie πŸŽ€ this little cutie comes to you from ./arch/arm/mach-omap2, dated October 2026, filed under _omap4_disable_module(9) β€” go forth and disable those modules responsibly βœ¨πŸ’œ

πŸ“¦ where this page comes from