scp_mapping_dm_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ scp_mapping_dm_addr(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” section 9, kernel API, we love to see it πŸ’… this little page is all about scp_mapping_dm_addr, and honestly? she's a glow-up for your memory addresses 🫢


πŸŽ€ NAME πŸŽ€

scp_mapping_dm_addr β€” literally mapping SRAM/DRAM to kernel virtual address, that's the whole gig ✨


🌸 SYNOPSIS 🌸

void * scp_mapping_dm_addr (struct mtk_scp *scp , u32 mem_addr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • scp β€” your mtk_scp structure, the main character of this whole function ngl πŸ’–
  • mem_addr β€” the SCP views memory address, like the address as the SCP sees it πŸ‘€

πŸ’œ DESCRIPTION πŸ’œ

So what she does is: she maps the SCP's SRAM address / DMEM (Data Extended Memory) memory address / Working buffer memory address over to a kernel virtual address 🧚✨ three different flavors of address, one slay little mapping, periodt.


πŸ”₯ RETURN πŸ”₯

Returns ERR_PTR(-EINVAL) if the mapping failed 😭 otherwise you get the mapped kernel virtual address back, iconic πŸ™ˆπŸ’…


⭐ SEE ALSO ⭐

Don't leave her lonely β€” check out the kernel file ./drivers/remoteproc/mtk_scp.c and her besties:


and that's the vibe check, bestie 🌈 this was brought to you straight out of ./drivers/remoteproc, dated October 2026 β€” no cap, go map some memory πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from