scp_ipi_register(9)
π
scp_ipi_register β a Kernel API Manual moment (that's the 9 in scp_ipi_register(9), iykyk)
okay so bestie, we're in the Kernel API Manual today and this page is genuinely the origin story of one function. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
scp_ipi_register β register an ipi function. that's it. that's the whole vibe check. π«
πΈ SYNOPSIS πΈ
int scp_ipi_register (struct mtk_scp *scp , u32 id , scp_ipi_handler_t
handler , void *priv );
literally four things in, one int out. the way that signature just works ππ
π ARGUMENTS π
scpβ themtk_scpstructure. this is the main character, the whole context, the vessel for your dreams πidβ the IPI ID. which one? that one. you pick, bestie, it's au32π¦handlerβ the IPI handler, anscp_ipi_handler_t. the function that actually does the thing when the interrupt shows up π―privβ private data for the IPI handler, avoid *. your lil' baggage that travels along with it, no cap π§³
π₯ DESCRIPTION π₯
so the actual tea: you call this to register an ipi function to receive ipi interrupt from SCP. like, you're handing the system your handler and saying "whenever an IPI interrupt comes through from SCP, this is who you call, periodt." πβ¨
attaching your priv so your handler knows who it's working with, and your id so everyone agrees on which IPI we're even talking about. iconic behavior, honestly π
β RETURN β
0 if the ipi registers successfully, and -error on error. that's the whole deal β zero is the slay outcome, and anything negative is the "we don't talk about it" outcome ππ
π SEE ALSO π
- the kernel file
./drivers/remoteproc/mtk_scp_ipi.c scp_ipi_unregister(9)β the breakup arc πscp_ipi_lock(9)β protect the vibes πscp_ipi_unlock(9)β release the vibes πscp_ipi_send(9)β send it, bestie π€
okay that's the page!! this little gem lives down in ./drivers/remoteproc, dated October 2026, and it goes by scp_ipi_register(9) β go forth and register your IPIs responsibly, 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