|
#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) {ipc_free(ptr); ptr = NULL;} |
| Free dynamic IPC memory and set pointer to NULL.
|
|
#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)) |
|