version 1.1, 2013/01/17 10:05:35
|
version 1.2, 2013/05/30 09:07:33
|
Line 171 char *mpool_strdup(mpool_t * __restrict mp, const char
|
Line 171 char *mpool_strdup(mpool_t * __restrict mp, const char
|
* @memname = Memory name |
* @memname = Memory name |
* return: NULL error or not found and !=NULL allocated memory |
* return: NULL error or not found and !=NULL allocated memory |
*/ |
*/ |
inline struct tagAlloc *mpool_getmembynam(mpool_t * __restrict mp, unsigned int size, const char *memname); | struct tagAlloc *mpool_getmembynam(mpool_t * __restrict mp, unsigned int size, const char *memname); |
/* |
/* |
* mpool_getsizebyaddr() - Get size of allocated memory block by address |
* mpool_getsizebyaddr() - Get size of allocated memory block by address |
* |
* |
* @data = allocated memory from mpool_malloc() |
* @data = allocated memory from mpool_malloc() |
* return: usable size of allocated memory block |
* return: usable size of allocated memory block |
*/ |
*/ |
inline unsigned int mpool_getsizebyaddr(void * __restrict data); | unsigned int mpool_getsizebyaddr(void * __restrict data); |
/* |
/* |
* mpool_chkaddr() - Check validity of given address |
* mpool_chkaddr() - Check validity of given address |
* |
* |
* @data = allocated memory from mpool_malloc() |
* @data = allocated memory from mpool_malloc() |
* return: -1 bad address, 1 corrupted address or 0 ok |
* return: -1 bad address, 1 corrupted address or 0 ok |
*/ |
*/ |
inline int mpool_chkaddr(void * __restrict data); | int mpool_chkaddr(void * __restrict data); |
/* |
/* |
* mpool_setquota() - Change maximum memory quota |
* mpool_setquota() - Change maximum memory quota |
* |
* |
Line 193 inline int mpool_chkaddr(void * __restrict data);
|
Line 193 inline int mpool_chkaddr(void * __restrict data);
|
* @maxmem = New max quota size |
* @maxmem = New max quota size |
* return: old maximum memory quota size |
* return: old maximum memory quota size |
*/ |
*/ |
inline unsigned long mpool_setquota(mpool_t * __restrict mp, unsigned long maxmem); | unsigned long mpool_setquota(mpool_t * __restrict mp, unsigned long maxmem); |
/* |
/* |
* mpool_getquota() - Get memory quota |
* mpool_getquota() - Get memory quota |
* |
* |
Line 202 inline unsigned long mpool_setquota(mpool_t * __restri
|
Line 202 inline unsigned long mpool_setquota(mpool_t * __restri
|
* @maxmem = Return max quota size |
* @maxmem = Return max quota size |
* return: none |
* return: none |
*/ |
*/ |
inline void mpool_getquota(mpool_t * __restrict mp, unsigned long *currmem, | void mpool_getquota(mpool_t * __restrict mp, unsigned long *currmem, |
unsigned long *maxmem); |
unsigned long *maxmem); |
/* |
/* |
* mpool_statistics() - Dump statistics from memory pool buckets |
* mpool_statistics() - Dump statistics from memory pool buckets |