ENUM FASTRPC_MAP_FLAGS(9)
π enum fastrpc_map_flags(9)
okay bestie, welcome to the Kernel API Manual β¨ this one's literally all about enum fastrpc_map_flags β the control flags for mapping memory on a DSP user process π¦ ngl it's short but it ATE, so let's get into it π
πΈ NAME
enum fastrpc_map_flags β the control flags for mapping memory on a DSP user process π (yes that's the whole name, she's efficient)
β SYNOPSIS
enum fastrpc_map_flags {
FASTRPC_MAP_STATIC ,
FASTRPC_MAP_RESERVED ,
FASTRPC_MAP_FD ,
FASTRPC_MAP_FD_DELAYED ,
FASTRPC_MAP_FD_NOMAP ,
FASTRPC_MAP_MAX
};
like, that's the whole enum, no cap π six little constants and they ALL matter, so let's meet them π«Ά
π Constants
π FASTRPC_MAP_STATIC
Map memory pages with RW- permission and CACHE WRITEBACK β¨ The driver is responsible for cache maintenance when passed the buffer to FastRPC calls π₯ and bestie, same virtual address will be assigned for subsequent FastRPC calls β she's consistent, we love that π
π FASTRPC_MAP_RESERVED
Reserved π that's it, that's the whole description, she's just chillin' on the bench (iykyk β don't touch)
π FASTRPC_MAP_FD
Map memory pages with RW- permission and CACHE WRITEBACK π mapping tagged with a file descriptor. You are responsible for CPU and DSP cache maintenance for the buffer π Get virtual address of buffer on DSP using HAP_mmap_get and HAP_mmap_put APIs π§
π FASTRPC_MAP_FD_DELAYED
Mapping delayed until user call HAP_mmap and HAP_munmap functions on DSP π it is useful to map a buffer with cache modes other than default modes β and again, user is responsible for CPU and DSP cache maintenance for the buffer π
π FASTRPC_MAP_FD_NOMAP
This flag is used to skip CPU mapping π¦ otherwise behaves similar to FASTRPC_MAP_FD_DELAYED flag β so she's delayed's cousin who just skips the CPU-mapping step, periodt π
π FASTRPC_MAP_MAX
max count for flags π the ceiling, the limit, the final boss of the enum β¨
π¦ SEE ALSO
- Kernel file
./include/uapi/misc/fastrpc.hπ FASTRPC_POLL_MODE(9)πΈ
ok and one little vibe check:FASTRPC_MAP_STATIC,FASTRPC_MAP_FD,FASTRPC_MAP_FD_DELAYEDandFASTRPC_MAP_FD_NOMAPall hand the cache-maintenance homework to somebody β sometimes the driver, sometimes you π read carefully before you yeet a buffer at the DSP, fr fr π
and that's the page bestie, hope it slayed π«Ά this gem came out of ./include/uapi/misc in October 2026 β mwah, go map some memory responsibly ππβ¨
π¦ 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