prm_was_any_...ext_lost_old(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 example OMAP4430_PRM_PARTITION. it's a u8, so keep it cute and keep it small πŸ’œ
  • inst β€” the PRM instance offset, like OMAP4430_PRM_MPU_INST. this one's a s16, yes signed, no we will not be explaining further, that's just how she is πŸ™ˆ
  • idx β€” the CONTEXT register offset, as a u16. 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:

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