omap3xxx_pr..._clear_irqen(9)
π omap3xxx_pr..._clear_irqen(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this page is literally the group chat for omap3xxx_pr..._clear_irqen(9) β the name got cut off at the function name length limit and honestly? it's giving dramatic cliffhanger π
. anyway, sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
omap3xxx_prm_save_and_clear_irqen β save/clear PRM_IRQENABLE_MPU reg π
like the name says, it's the save-and-clear girlie for that register. no cap.
π¦ SYNOPSIS π¦
void omap3xxx_prm_save_and_clear_irqen (u32 *saved_mask );
that's it. that's the whole vibe. one pointer, no return value, no drama π₯
πΈ ARGUMENTS πΈ
saved_maskβ ptr to au32array to save IRQENABLE bits π«Ά like, you hand it a place to stash the bits, and it stashes them. iconic behavior fr fr.
π DESCRIPTION π
so here's the tea β β this function saves the PRM_IRQENABLE_MPU register into saved_mask.
and very important: saved_mask must be allocated by the caller. not by this function, not by the kernel spontaneously, not by magic π§ β you allocate it. it's your moment, bestie, take the initiative.
the intended use case is in the PRM interrupt handler suspend callback π that's its main character era.
now the part people always forget π β the OCP barrier is needed to ensure the write that disables PRM interrupts actually reaches the PRM before returning. because if you skip it? spurious interrupts might occur π and nobody wants random interrupts showing up to the party uninvited.
and yeah β no return value. it returns void, so don't go checking for an exit code, there isn't one π
π SEE ALSO π
check out this kernel file first:
./arch/arm/mach-omap2/prm3xxx.c
and then the whole~~ friend group of related functions, all here, all linked π:
omap3xxx_prm_dpll3_reset(9)omap3xxx_prm_read_pending_irqs(9)omap3xxx_prm_ocp_barrier(9)omap3xxx_prm_restore_irqen(9)omap3xxx_prm_clear_mod_irqs(9)omap3_prm_reset_modem(9)omap3_prm_init_pm(9)omap3430_pre_es3_1_reconfigure_io_chain(9)omap3_prm_reconfigure_io_chain(9)omap3xxx_prm_enable_io_wakeup(9)omap3xxx_prm_read_reset_sources(9)omap3xxx_prm_iva_idle(9)omap3xxx_prm_clear_global_cold_reset(9)
like, the entire omap3 PRM squad came out for this π«Άπ
okay that's the whole page !! π this lil beauty lives under ./arch/arm/mach-omap2 and it was dated October 2026 β β yes, the future. girlies stay ahead of the timeline πβ¨ 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