Main definitions for memory manager.
More...
#include "../config.h"
#include "../dprint.h"
#include <stdlib.h>
#include "memdbg.h"
Go to the source code of this file.
Defines
-
#define PKG_MEM_ERROR LM_ERR("could not allocate private memory from available pool")
- generic logging helper for allocation errors in private memory pool/ system
-
#define SHM_MEM_ERROR LM_ERR("could not allocate shared memory from available pool")
- generic logging helper for allocation errors in shared memory pool
Functions
Detailed Description
Main definitions for memory manager, like malloc, free and realloc
Definition in file mem.h.
Function Documentation
| int init_pkg_mallocs |
( |
void |
|
) |
|
- Returns:
- 0 if the memory allocation was successful, -1 otherwise
Definition at line 68 of file mem.c.
References fm_malloc_init().
| int init_shm_mallocs |
( |
int |
force_alloc |
) |
|
- Parameters:
-
| force_alloc | Force allocation of memory, e.g. initialize complete block with zero |
- Returns:
- 0 if the memory allocation was successful, -1 otherwise
Definition at line 121 of file mem.c.