q_malloc.h File Reference

#include "meminfo.h"

Include dependency graph for q_malloc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  qm_block
struct  qm_frag
struct  qm_frag_end
struct  qm_frag_lnk

Defines

#define MIN_FRAG_SIZE   ROUNDTO
#define q_malloc_h
#define QM_HASH_SIZE
#define QM_MALLOC_OPTIMIZE   ((unsigned long)(1UL<<QM_MALLOC_OPTIMIZE_FACTOR))
#define QM_MALLOC_OPTIMIZE_FACTOR   14UL
#define ROUNDTO   16UL

Functions

void qm_free (struct qm_block *, void *p)
void qm_info (struct qm_block *, struct mem_info *)
void * qm_malloc (struct qm_block *, unsigned long size)
struct qm_blockqm_malloc_init (char *address, unsigned long size)
void * qm_realloc (struct qm_block *, void *p, unsigned long size)
void qm_status (struct qm_block *)


Define Documentation

#define MIN_FRAG_SIZE   ROUNDTO

Definition at line 55 of file q_malloc.h.

#define q_malloc_h

Definition at line 34 of file q_malloc.h.

#define QM_HASH_SIZE

Value:

((unsigned long)(QM_MALLOC_OPTIMIZE/ROUNDTO + \
      (sizeof(long)*8-QM_MALLOC_OPTIMIZE_FACTOR)+1))

Definition at line 65 of file q_malloc.h.

Referenced by qm_find_free(), qm_info(), qm_malloc_init(), and qm_status().

#define QM_MALLOC_OPTIMIZE   ((unsigned long)(1UL<<QM_MALLOC_OPTIMIZE_FACTOR))

Definition at line 60 of file q_malloc.h.

Referenced by qm_malloc_init(), qm_status(), and split_frag().

#define QM_MALLOC_OPTIMIZE_FACTOR   14UL

Definition at line 59 of file q_malloc.h.

#define ROUNDTO   16UL

Definition at line 50 of file q_malloc.h.


Function Documentation

void qm_free ( struct qm_block ,
void *  p 
)

void qm_info ( struct qm_block ,
struct mem_info  
)

void* qm_malloc ( struct qm_block ,
unsigned long  size 
)

struct qm_block* qm_malloc_init ( char *  address,
unsigned long  size 
) [read]

void* qm_realloc ( struct qm_block ,
void *  p,
unsigned long  size 
)

void qm_status ( struct qm_block  ) 


Generated on Thu May 24 08:01:16 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6