ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


ADMXRC2_Malloc

Prototype

void* ADMXRC2_Malloc( unsigned long Size);

Arguments

Argument Type Purpose
Size In Number of bytes of memory to allocate

Return value

If successful, a pointer to a region of allocated memory is returned. If unsuccessful, NULL is returned.

Description

This function allocates memory that can safely be used as a target for DMA transfers. It must be used on a platform running a Linux 2.4.x kernel because of subtleties in the way that memory is locked down for DMA in Linux. The returned memory region is always aligned to a page boundary.

When the memory is no longer required, it should be freed by a call to ADMXRC2_Free.

 


 Top of page