f_malloc.h File Reference

#include "meminfo.h"

Include dependency graph for f_malloc.h:

Go to the source code of this file.

Data Structures

struct  fm_block
struct  fm_frag
struct  fm_frag_lnk

Defines

#define F_HASH_SIZE
#define f_malloc_h
#define F_MALLOC_HASH_BITMAP
#define F_MALLOC_OPTIMIZE   (1UL<<F_MALLOC_OPTIMIZE_FACTOR)
#define F_MALLOC_OPTIMIZE_FACTOR   14UL
#define FM_HASH_BMP_BITS   (sizeof(fm_hash_bitmap_t)*8)
#define FM_HASH_BMP_SIZE   ((F_HASH_SIZE+FM_HASH_BMP_BITS-1)/FM_HASH_BMP_BITS)
#define MIN_FRAG_SIZE   ROUNDTO
#define ROUNDTO   8UL

Typedefs

typedef unsigned long fm_hash_bitmap_t

Functions

unsigned long fm_available (struct fm_block *)
void fm_free (struct fm_block *, void *p)
void fm_info (struct fm_block *, struct mem_info *)
void * fm_malloc (struct fm_block *, unsigned long size)
struct fm_blockfm_malloc_init (char *address, unsigned long size)
void * fm_realloc (struct fm_block *, void *p, unsigned long size)
void fm_status (struct fm_block *)


Define Documentation

#define F_HASH_SIZE

Value:

Definition at line 72 of file f_malloc.h.

#define f_malloc_h

Definition at line 35 of file f_malloc.h.

#define F_MALLOC_HASH_BITMAP

Definition at line 47 of file f_malloc.h.

#define F_MALLOC_OPTIMIZE   (1UL<<F_MALLOC_OPTIMIZE_FACTOR)

Definition at line 67 of file f_malloc.h.

#define F_MALLOC_OPTIMIZE_FACTOR   14UL

Definition at line 66 of file f_malloc.h.

#define FM_HASH_BMP_BITS   (sizeof(fm_hash_bitmap_t)*8)

Definition at line 77 of file f_malloc.h.

#define FM_HASH_BMP_SIZE   ((F_HASH_SIZE+FM_HASH_BMP_BITS-1)/FM_HASH_BMP_BITS)

Definition at line 78 of file f_malloc.h.

#define MIN_FRAG_SIZE   ROUNDTO

Definition at line 62 of file f_malloc.h.

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

#define ROUNDTO   8UL

Definition at line 60 of file f_malloc.h.

Referenced by qm_malloc_init(), and qm_status().


Typedef Documentation

typedef unsigned long fm_hash_bitmap_t

Definition at line 76 of file f_malloc.h.


Function Documentation

unsigned long fm_available ( struct fm_block  ) 

void fm_free ( struct fm_block ,
void *  p 
)

void fm_info ( struct fm_block ,
struct mem_info  
)

void* fm_malloc ( struct fm_block ,
unsigned long  size 
)

struct fm_block* fm_malloc_init ( char *  address,
unsigned long  size 
) [read]

Referenced by init_pkg_mallocs().

void* fm_realloc ( struct fm_block ,
void *  p,
unsigned long  size 
)

void fm_status ( struct fm_block  ) 


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6