util/mempool.c File Reference

Memory pool allocator. More...

#include <assert.h>
#include <debug.h>
#include <interrupt.h>
#include <mempool.h>
#include <physmem.h>
#include <util.h>
#include <stdint.h>

Go to the source code of this file.

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.c.

Generated on Thu Apr 29 15:18:22 2010 for display-training by  doxygen 1.6.3