udi_mem_free(3udi)


Free a memory object

SYNOPSIS

#include <udi.h>

void udi_mem_free (

	void *target_mem );
 

ARGUMENTS target_mem is a pointer to the memory object being deallocated.

DESCRIPTION udi_mem_free frees all resources associated with the specified memory object. The driver must not dereference the target_mem pointer once this function is called.

If target_mem is equal to NULL, explicitly or implicitly (zeroed by initial value or by using udi_memset), this function acts as a no-op. Otherwise, target_mem must have been allocated by udi_mem_alloc or passed to the driver as a movable memory block via a channel operation.

Note - The udi_init_context_t structure, the rest of the initial region data area, and any channel context structures pre-allocated by the environment, must not be freed by the driver and are not transferrable between regions.

REFERENCES udi_mem_alloc


UDI Core Specification Contents