omap_hwmod_allocate_module(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap_hwmod_allocate_module β€” allocate new module πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for omap_hwmod_allocate_module, and yes the whole function name is a mouthful but we move πŸ’–. It does exactly one thing and the NAME section said it in three words: allocate new module. Iconic, lowkey.


✨ SYNOPSIS ✨

int omap_hwmod_allocate_module (struct device *dev , struct omap_hwmod
*oh , const struct ti_sysc_module_data *data , struct sysc_regbits
*sysc_fields , struct clockdomain *clkdm , s32 rev_offs , s32 sysc_offs
, s32 syss_offs , u32 sysc_flags , u32 idlemodes );

it's giving ten arguments, no cap. we don't gatekeep, here's every single one 🫢


🌸 ARGUMENTS 🌸

  • dev β€” struct device πŸ’»
  • oh β€” the module
  • data β€” module data
  • sysc_fields β€” sysc register bits
  • clkdm β€” clockdomain πŸ•°οΈ
  • rev_offs β€” revision register offset
  • sysc_offs β€” sysconfig register offset
  • syss_offs β€” sysstatus register offset
  • sysc_flags β€” sysc specific flags 🚩
  • idlemodes β€” sysc supported idlemodes 😴

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, and it is important tea β˜•: the allocations here cannot use devm, because ti-sysc can rebind. like, that's the whole note. no devm, periodt. Do not come for me with devm on this one. πŸ’€

ngl this is the kind of caveat people skim and then spend a whole afternoon debugging. read it twice, bestie. πŸ“

⭐ SEE ALSO ⭐

first up, the source of truth, iykyk: Kernel file ./arch/arm/mach-omap2/omap_hwmod.c 🌈

and now the full squad of cross-references, in the exact order the page gave them, no cutting corners πŸ‘‘

like, that's the whole friend group and every single one of them got an invite πŸ§šπŸ’œ


and that's the page!! it lives in ./arch/arm/mach-omap2, it's dated October 2026, and the source/version footer at the bottom of the original? that's the omap_hwmod_allocate_module(9) header from the Kernel API Manual on both ends β€” consider it shouted out πŸ’…βœ¨ go be obsessed with your sysc register bits, bestie, you got this πŸŒΈπŸ¦‹
πŸ“¦ where this page comes from