ENUM FASTRPC_MAP_FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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


ok and one little vibe check: FASTRPC_MAP_STATIC, FASTRPC_MAP_FD, FASTRPC_MAP_FD_DELAYED and FASTRPC_MAP_FD_NOMAP all 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