Shared Memory
A small module that can manage a list of pre-allocaed memory pools so that multiple modules can use them in non-overlapping manner.
Usage
All API functions have the first argument configuration of framer.
Use rs_shm_init to initialize the logic
Use rs_shm_add to create an entry
Use rs_shm_request to request a shared memory
5. Use the memory and then release it using rs_shm_release 4. Return codes of API functions are defined in header file.
Function |
Description |
|---|---|
rs_shm_init |
Function to initialize the shared memory manager |
rs_shm_add |
Function to add a memory to the shared memory pool |
rs_shm_request |
Function to request shared memory with given ID |
rs_shm_release |
Function to release shared memory with given ID |
Error Code
Every API’s for the message queue module returns some success or failure values.
Please refer below section,
Shared Memory Header Details
Documentation from the relevant header as follows:
Warning
doxygenfile: Cannot find file “rs_shm.h