include/mempool.h File Reference

Memory pool allocator. More...

#include <types.h>

Go to the source code of this file.

Data Structures

struct  mem_pool
 Memory pool. More...

Functions

void mem_pool_init (struct mem_pool *pool, void *start, size_t size, size_t objsize, unsigned int align_order)
 Initialize a memory pool.
void mem_pool_init_physmem (struct mem_pool *mempool, struct physmem_pool *phys_pool, unsigned int nr_objects, size_t objsize, unsigned int align_order)
 Initialize a memory pool using the physmem allocator.
void * mem_pool_alloc (struct mem_pool *pool)
 Allocate an object from a memory pool.
void mem_pool_free (struct mem_pool *pool, const void *obj)
 Free an object previously allocated from a memory pool.

Detailed Description

Memory pool allocator.

Copyright (C) 2009 Atmel Corporation. All rights reserved.

Definition in file mempool.h.

Generated on Thu Apr 29 14:09:58 2010 for display-demo by  doxygen 1.6.3