Important: The information in this document is obsolete and should not be used for new development.
OTAllocMem
Allocates memory from the Open Transport memory pool.C INTERFACE
void* OTAllocMem(size_t nbytes)C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
nbytes
- The amount (in bytes) of memory to allocate.
DISCUSSION
TheOTAllocMem
function allocates raw memory from a pool that Open Transport creates for your application. This function returns a pointer to the allocated memory; pass the same pointer to theOTFreeMem
function to deallocate this memory.SPECIAL CONSIDERATIONS
You can call this routine at both hardware interrupt level and from a deferred task. You need to call theOTEnterInterrupt
function before you make this call from a hardware interrupt.SEE ALSO
TheOTFreeMem
function.