prm_was_any_...ext_lost_old(9)
π prm_was_any_context_lost_old β the kernel API manual's own little icon (section 9, bestie) π
okay so this page is from the Kernel API Manual, section 9, and the star of the show is a function with a NAME so long it needs its own vibe check: prm_was_any_context_lost_old β literally "was device context lost? (old API)". the parenthetical is doing so much heavy lifting there, we love her for it π
β¨ NAME β¨
prm_was_any_context_lost_old β was device context lost? (old API) π«Ά
π¦ SYNOPSIS π¦
bool prm_was_any_context_lost_old (u8 part , s16 inst , u16 idx );
returns a bool, takes three args, spaces around the commas, we don't judge, slay β¨
πΈ ARGUMENTS πΈ
partβ the PRM partition ID, like for exampleOMAP4430_PRM_PARTITION. it's au8, so keep it cute and keep it small πinstβ the PRM instance offset, likeOMAP4430_PRM_MPU_INST. this one's as16, yes signed, no we will not be explaining further, that's just how she is πidxβ theCONTEXTregister offset, as au16. this is the one that tells the function which register we're vibe-checking π₯
π DESCRIPTION π
so bestie, here's the tea: this function returns 1 if any bits were set in the *_CONTEXT_* register identified by (part, inst, idx) β which means some context was lost for that module π« otherwise it returns 0, and everything is fine and nobody has to panic.
β οΈ okay and now for the part where I hold your hand: XXX Deprecated. like, for real deprecated. callers need to use a less-SoC-dependent way to identify hardware IP blocks. so if you're out here calling this, that's giving "living in the past" energy ngl β go find the newer, less SoC-locked way, iykyk π
π§ SEE ALSO π§
kernel file ./arch/arm/mach-omap2/prm_common.c β yes, that's the actual path, go look at it π
and the whole friend group, all of them, no cap:
omap_prcm_event_to_irq(9)omap_prcm_irq_cleanup(9)omap_prcm_register_chain_handler(9)prm_clear_context_loss_flags_old(9)omap_prm_assert_hardreset(9)omap_prm_deassert_hardreset(9)omap_prm_is_hardreset_asserted(9)omap_prm_reset_system(9)omap_prm_clear_mod_irqs(9)omap_prm_vp_check_txdone(9)omap_prm_vp_clear_txdone(9)prm_register(9)prm_unregister(9)omap2_prm_base_init(9)omap_prcm_init(9)
that's the whole group chat, all fifteen of them, all with (9) because they're all section 9 main characters π
πΈ and that's the page!! πΈ this masterpiece lives in ./arch/arm/mach-omap2 and it's dated October 2026 β go forth, check your context bits, and remember: deprecated doesn't mean unloved ππ 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