How qualcomm/fastrpc works
FastRPC lets a CPU-side application invoke DSP code through generated stubs and skeletons, with the framework transporting requests and responses between processors. The principal workflow is application → stub → CPU library → kernel transport → DSP framework → skeleton → implementation, then back with results. The repository includes CPU runtime APIs, DSP-side support, memory and queue facilities, and service interfaces. README workflow relationships are documented; source excerpts are partial, so unverified internal call links are omitted.
Main entry points: fastrpc_apps_user.c FastRPC client API · dsprpcd.c DSP RPC daemon · apps_std_skel.c Generated skeletons · apps_std_imp.c Standard service implementation
Components 19
CPU client runtime
- FastRPC client API
src/fastrpc_apps_user.c - Remote API definitions
inc/remote.h - Session contexts
src/fastrpc_context.c - RPC memory mapping
src/fastrpc_mem.c
DSP transport runtime
- DSP RPC daemon
src/dsprpcd.c - DSP request queues
src/dspqueue/dspqueue_cpu.c
DSP services
- Generated skeletons
src/apps_std_skel.c - Standard service implementation
src/apps_std_imp.c - Memory service
src/apps_mem_imp.c - Remote control service
src/apps_remotectl_skel.c - DSP listeners
src/adsp_default_listener.c - DSP message service
src/adspmsgd.c
Runtime support
- Configuration parser
src/fastrpc_config_parser.c - RPC internal definitions
inc/fastrpc_internal.h - Shared runtime definitions
inc/fastrpc_common.h - Runtime utilities
inc/AEEstd.h
Other components
- CPU application
- Generated stub
- Kernel RPC driver
Connections 15
- CPU application → Generated stub: calls
- Generated stub → FastRPC client API: invokes
- FastRPC client API → Kernel RPC driver: queues request
- Kernel RPC driver → DSP RPC daemon: transports via rpmsg
- DSP RPC daemon → Generated skeletons: dispatches call
- Generated skeletons → Standard service implementation: invokes method
- Standard service implementation → Generated skeletons: returns result
- Generated skeletons → DSP RPC daemon: queues response
- DSP RPC daemon → Kernel RPC driver: returns response
- Kernel RPC driver → FastRPC client API: dispatches response
- FastRPC client API → Generated stub: returns result
- Generated stub → CPU application: returns result
- FastRPC client API → RPC memory mapping: maps buffers
- FastRPC client API → Session contexts: manages sessions
- DSP RPC daemon → DSP request queues: dispatches requests