|
#define | size_align(size, alignment) (((size) + (alignment)-1) / (alignment) * (alignment)) |
| This rounds up the given size to a multiple of alignment. More...
|
|
#define | ipc_malloc(size) memory_malloc(size) |
| Allocate dynamic memory from IPC memory.
|
|
#define | ipc_free(ptr) memory_free(ptr) |
| Free dynamic memory from IPC memory.
|
|
#define | ipc_calloc(nmemb, size) memory_calloc(nmemb, size) |
| Allocate zero initialized dynamic memory of nmemb * size from IPC memory.
|
|
#define | ipc_realloc(ptr, size) memory_realloc(ptr, size) |
| Rellocate dynamic memory from IPC memory.
|
|
#define | ipc_memset(s, c, n) ua_memset(s, c, n) |
| Fill IPC memory with constant byte c .
|
|
#define | IPC_CLEANUP_MEM_ON_ERROR(ret, ptr) |
| On error (ret != 0) free dynamic IPC memory and set pointer to NULL. More...
|
|
#define | IPC_CLEANUP_MEM(ptr) |
| Free dynamic IPC memory and set pointer to NULL. More...
|
|
#define | ipc_pointer_increment(ptr, offset) ((void *)(((uint8_t *)(ptr)) + (offset))) |
| Increment a pointer by the given offset ignoring the pointer type.
|
|
#define | ipc_const_pointer_increment(ptr, offset) ((const void *)(((const uint8_t *)(ptr)) + (offset))) |
| Increment a const pointer by the given offset ignoring the pointer type.
|
|
#define | IPC_ALLOC(var) ipc_malloc(sizeof(*var)) |
| Allocate dynamic IPC memory for a typed pointer var . More...
|
|
#define | IPC_ALLOC_ARRAY(var, num) ipc_malloc(sizeof(*var) * (num)) |
| Allocate array of dynamic IPC memory for a typed pointer var . More...
|
|
#define | IPC_CALLOC(var) ipc_calloc(1, sizeof(*var)) |
| Allocate zero initialized dynamic IPC memory for a typed pointer var . More...
|
|
#define | IPC_CALLOC_ARRAY(var, num) ipc_calloc(num, sizeof(*var)) |
| Allocate zero initialized array of dynamic IPC memory for a typed pointer var . More...
|
|
#define | IPC_FREE(var) ipc_free(var) |
| Free dynamic memory from IPC memory. More...
|
|
#define | IPC_CLEAR(var) ua_memset(var, 0, sizeof(*var)) |
| Set memory pointed to by typed pointer to zero.
|
|
#define | IPC_CLEAR_ARRAY(var, num) ua_memset(var, 0, sizeof(*var) * (num)) |
| Like IPC_CLEAR but for arrays.
|
|
#define | IPC_MEMSET(var, val) ua_memset(var, val, sizeof(*var)) |
|
#define | IPC_MEMSET_ARRAY(var, val, num) ua_memset(var, val, sizeof(*var) * (num)) |
|
|
MEMORY_EXPORT void * | pointer_align (void *ptr) |
| This rounds up the given address to next valid aligned pointer address. More...
|
|
MEMORY_EXPORT char * | ipc_strdup (const char *s) |
| String duplication using ipc_malloc. More...
|
|
MEMORY_EXPORT void * | ipc_fct_malloc (size_t size) |
| Malloc function to be used as function pointer instead of macros.
|
|
MEMORY_EXPORT void | ipc_fct_free (void *ptr) |
| Free function to be used as function pointer instead of macros.
|
|
MEMORY_EXPORT void * | ipc_fct_calloc (size_t nmemb, size_t size) |
| Calloc function to be used as function pointer instead of macros.
|
|
MEMORY_EXPORT void * | ipc_fct_realloc (void *ptr, size_t size) |
| Realloc function to be used as function pointer instead of macros.
|
|