scp_mapping_dm_addr(9)
β¨ 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β yourmtk_scpstructure, 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:
scp_get(9)scp_put(9)scp_get_device(9)scp_get_rproc(9)scp_get_vdec_hw_capa(9)scp_get_venc_hw_capa(9)scp_get_default_fw_path(9)
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
- 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