Linux Kernel
3.7.1
|
#include <asm/io.h>
#include <asm/scatterlist.h>
Go to the source code of this file.
Functions | |
struct dma_pool * | dma_pool_create (const char *name, struct device *dev, size_t size, size_t align, size_t allocation) |
void | dma_pool_destroy (struct dma_pool *pool) |
void * | dma_pool_alloc (struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle) |
void | dma_pool_free (struct dma_pool *pool, void *vaddr, dma_addr_t addr) |
struct dma_pool * | dmam_pool_create (const char *name, struct device *dev, size_t size, size_t align, size_t allocation) |
void | dmam_pool_destroy (struct dma_pool *pool) |
void* dma_pool_alloc | ( | struct dma_pool * | pool, |
gfp_t | mem_flags, | ||
dma_addr_t * | handle | ||
) |
dma_pool_alloc - get a block of consistent memory : dma pool that will produce the block : GFP_* bitmask : pointer to dma address of block
This returns the kernel virtual address of a currently unused block, and reports its dma address through the handle. If such a memory block can't be allocated, NULL is returned.
void dma_pool_free | ( | struct dma_pool * | pool, |
void * | vaddr, | ||
dma_addr_t | dma | ||
) |
dmam_pool_destroy - Managed dma_pool_destroy() : dma pool that will be destroyed
Managed dma_pool_destroy().