Main Page | Modules | Directories | File List | Globals | Related Pages

gm_dma_malloc.c File Reference

#include "gm_call_trace.h"
#include "gm_compiler.h"
#include "gm_debug.h"
#include "gm_debug_mem_register.h"
#include "gm_internal.h"
#include "gm_malloc_debug.h"
#include "gm_register_recv_queue.h"

Functions

GM_ENTRY_POINT void gm_dma_free (gm_port_t *p, void *addr)
GM_ENTRY_POINT void * gm_dma_malloc (struct gm_port *p, gm_size_t length)

Detailed Description

This file includes source for the user-level API calls gm_dma_malloc() and gm_dma_free().

Function Documentation

GM_ENTRY_POINT void gm_dma_free gm_port_t *  p,
void *  addr
 

gm_dma_free() frees p, which was allocated by a call to gm_dma_calloc() or gm_dma_malloc(). Note that the memory is not necessarily unlocked and returned to the operating system, but may be reused in future calls to gm_dma_calloc() or gm_dma_malloc().

Parameters:
p (IN) The GM port.
addr (IN) The address of the memory to be freed.
See also:
gm_dma_calloc gm_dma_malloc
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)

GM_ENTRY_POINT void* gm_dma_malloc struct gm_port *  p,
gm_size_t  length
 

gm_dma_malloc() allocates length bytes of DMAable memory aligned on a 4-byte boundary. Memory should be freed using gm_dma_free().

Parameters:
p (IN) Handle to the GM port.
length (IN) The number of bytes to be malloc'ed.
See also:
gm_dma_calloc gm_dma_free
Author:
Glenn Brown
Version:
GM_API_VERSION (as defined in gm.h)


Generated on Sat May 20 19:20:41 2006 for GM by  doxygen 1.4.4