STRUCT PRM_LL_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the struct prm_ll_data(9) page from the Kernel API Manual, and the name is fully doing its job: struct prm_ll_data is a bundle of fn ptrs to per-SoC PRM function implementations. literally a struct full of function pointers, one per SoC PRM implementation, bestie πŸ’….


πŸ› οΈ SYNOPSIS πŸ› οΈ

here's the whole struct in all its exact-code glory β€” no edits, no cap:

       struct prm_ll_data {
           u32 (*read_reset_sources)(void);
           bool (*was_any_context_lost_old)(u8 part, s16 inst, u16 idx);
           void (*clear_context_loss_flags_old)(u8 part, s16 inst, u16 idx);
           int (*late_init)(void);
           int (*assert_hardreset)(u8 shift, u8 part, s16 prm_mod, u16 offset);
           int (*deassert_hardreset)(u8 shift, u8 st_shift, u8 part, s16
       prm_mod, u16 offset, u16 st_offset);
           int (*is_hardreset_asserted)(u8 shift, u8 part, s16 prm_mod, u16
       offset);
           void (*reset_system)(void);
           int (*clear_mod_irqs)(s16 module, u8 regs, u32 wkst_mask);
           u32 (*vp_check_txdone)(u8 vp_id);
           void (*vp_clear_txdone)(u8 vp_id);
        };

the way that every field is a function pointer wired up to a per-SoC PRM implementation. it's giving β€œkernel plumbing but make it customizable” ✨.


🫢 Members 🫢

these are the members the page gives individual blurbs for:

  • read_reset_sources β€” ptr to the SoC PRM-specific get_reset_source impl. yes bestie, that's the function that gets reset sources, SoC PRM style 🌸.
  • was_any_context_lost_old β€” ptr to the SoC PRM context loss test fn. it tests whether any context was lost, old flavor πŸ‘€.
  • clear_context_loss_flags_old β€” ptr to the SoC PRM context loss flag clear fn. it clears those context loss flags, old flavor 🧹.
  • late_init β€” ptr to the late init function. late but not forgotten, fr fr ⭐.
  • assert_hardreset β€” ptr to the SoC PRM hardreset assert impl. asserting hardreset, but make it SoC PRM-specific πŸ’₯.
  • deassert_hardreset β€” ptr to the SoC PRM hardreset deassert impl. and here's the deassert counterpart, slay 🫢.

πŸ’– Description πŸ’–

the page comes in with a big XXX: was_any_context_lost_old and clear_context_loss_flags_old are deprecated. like, deprecated deprecated. those two are not the main character anymore, bestie πŸ’€. no cap, that's the entire description.


πŸ‘€ SEE ALSO πŸ‘€

go peek at these if you're doing the reading:

  • Kernel file ./arch/arm/mach-omap2/prm.h β€” the header file in question πŸ“.
  • struct prm_reset_src_map(9) β€” another manual page to vibe with πŸ”₯.

and that's the page, bestie. footer vibes: source/version is ./arch/arm/mach-omap2, date is October 2026, manual is struct prm_ll_data(9) β€” periodt πŸŽ€βœ¨πŸ’–.

πŸ“¦ where this page comes from