prm_register(9)
β¨ NAME β¨
okay bestie, welcome to prm_register(9) β she's straight out of the Kernel API Manual, and she registers per-SoC low-level data with the PRM π
π SYNOPSIS π
int prm_register (struct prm_ll_data *pld );
Yep, she takes one argument and hands you back an int, periodt.
π«Ά ARGUMENTS π«Ά
pldβ low-level per-SoC OMAP PRM data & function pointers to register. This is the whole payload, bestie.
π₯ DESCRIPTION π₯
Okay so here's the tea: prm_register registers per-SoC low-level OMAP PRM data and function pointers with the OMAP PRM common interface. Very main character energy, very βlet me introduce myself to the common layerβ π
The caller must keep the data pointed to by pld valid until it calls prm_unregister and it returns successfully. Like, actually returns successfully β no cap. Don't let that data go poof early π
Return vibe check:
0β success, slay β¨-EINVALβ ifpldisNULL-EEXISTβ ifprm_registerhas already been called without an interveningprm_unregister
bestie, if you already registered without unregistering first, thatβs a -EEXIST situation. The kernel is literally telling you βgirl, weβve been hereβ π
π SEE ALSO π
- Kernel file
./arch/arm/mach-omap2/prm_common.c omap_prcm_event_to_irq(9)omap_prcm_irq_cleanup(9)omap_prcm_register_chain_handler(9)prm_was_any_context_lost_old(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_unregister(9)omap2_prm_base_init(9)omap_prcm_init(9)
xoxo, bestie π this page lives under ./arch/arm/mach-omap2, dated October 2026, and it's prm_register(9) signing off β stay valid until prm_unregister returns, 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