_is_module_ready(9)
π _is_module_ready(9)
okay so this is a page from the Kernel API Manual and honestly? it's a little baddie of a function. it answers one (1) very important question: can we touch this module's registers without the whole thing going abort on us? π«Ά
β¨ NAME β¨
_is_module_ready β can module registers be accessed without causing an abort?
like, literally, is it safe to poke the registers or are we about to have a bad time. that's the whole vibe check. π
π SYNOPSIS π
bool _is_module_ready (u8 part , u16 inst , u16 clkctrl_offs );
it returns a bool, bestie. true or false. that's the whole API. π₯
πΈ ARGUMENTS πΈ
partβ the PRCM partition ID, i.e. which partition theCM_CLKCTRLregister lives in. it's au8, keep it cute.instβ the CM instance register offset. you get this from the*_INSTmacro, mkay? π―clkctrl_offsβ the module clock control register offset, courtesy of the*_CLKCTRLmacro. very demure, very macro. β¨
π DESCRIPTION π
returns true if the module's CM_*_CLKCTRL.IDLEST bitfield is either *FUNCTIONAL or *INTERFACE_IDLE. returns false otherwise.
that's it. that's the function. it looks at the IDLEST bits and tells you if the module is chill or not chill. no cap. π
bestie note: if it comes back false, do not go accessing those registers anyway. that's the abort. we don't do aborts here. π
π¦ SEE ALSO π¦
all the siblings and cousins, fr fr β and they're all in the kernel file ./arch/arm/mach-omap2/cminst44xx.c:
omap_cm_base_init(9)_clkctrl_idlest(9)_clktrctrl_write(9)omap4_cminst_is_clkdm_in_hwsup(9)omap4_cminst_clkdm_enable_hwsup(9)omap4_cminst_clkdm_disable_hwsup(9)omap4_cminst_clkdm_force_wakeup(9)omap4_cminst_wait_module_ready(9)omap4_cminst_wait_module_idle(9)omap4_cminst_module_enable(9)omap4_cminst_module_disable(9)omap4_clkdm_save_context(9)omap4_clkdm_restore_context(9)
go read them. iykyk. πβ¨
k bye bestie!! π§π this iconic little page lives in ./arch/arm/mach-omap2 and was stamped October 2026 β mwah, slay, periodt. ππ
π¦ 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