omap44xx_pr..._clear_irqen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… omap44xx_pr..._clear_irqen β€” like, the whole glow-up

bestie, you found it: the page for omap44xx_prm_save_and_clear_irqen (yes the header truncates the name, that's just the manual being dramatic, the real one is the full thing) from the Kernel API Manual. sit down, this one's short but it matters πŸŽ€


✨ NAME ✨

omap44xx_prm_save_and_clear_irqen β€” literally the save-and-clear girlie for the PRM_IRQENABLE_MPU* regs 🫢


🌸 SYNOPSIS 🌸

void omap44xx_prm_save_and_clear_irqen (u32 *saved_mask );

no cap, that's the whole signature. void going in, void coming out β€” she gives nothing back and honestly? iconic πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • saved_mask β€” ptr to a u32 array to save IRQENABLE bits. that's it. that's the assignment. it's a pointer, you're handing her the storage, she fills it. you're the main character providing the venue πŸŽ€

⭐ DESCRIPTION ⭐

okay so here's the tea πŸ”₯

She saves the PRM_IRQENABLE_MPU and PRM_IRQENABLE_MPU_2 registers into saved_mask. Both of them. Not one. Both. she's thorough like that.

Heads up tho πŸ™ˆ β€” saved_mask must be allocated by the caller. She is not doing your memory management for you, bestie, that's your job. she just writes. you provide. it's giving healthy boundaries fr fr.

This one is intended to be used in the PRM interrupt handler suspend callback. so like, that's her natural habitat 🌸

And now the important bit β€” the OCP barrier is needed to ensure the write to disable PRM interrupts reaches the PRM before returning. Why, you ask? because otherwise spurious interrupts might occur 😭 and nobody wants that. so the barrier stays. it's not optional decoration, it's the whole vibe check.

No return value. she returns void. she doesn't report back. she just does it. πŸ’€

real talk: don't skip the barrier. spurious interrupts are not a cute look.

πŸ‘‘ SEE ALSO πŸ‘‘

that's the whole friend group right there πŸ’– go read them too, iykyk 🌈


and that's a wrap, babe πŸ’– this little beauty lives in ./arch/arm/mach-omap2, dated October 2026, and it's page omap44xx_pr..._clear_irqen(9) of the Kernel API Manual. stan her, cite her, and for the love of everything β€” allocate your own saved_mask πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from