Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Thursday, June 13, 2019
 
 

IMA_FreeMemory (3IMA)

Name

IMA_FreeMemory - Frees memory returned by an IMA API

Synopsis

cc [ flag... ] file... -lima [ library... ]
#include <ima.h>

IMA_STATUS IMA_FreeMemory(
/* in */     void *pMemory
);

Parameters

pMemory

A pointer to the memory returned by an IMA API, such as the IMA_OID_LIST data structure returned by the library.

If the specified pointer is NULL, then the function succeeds, but takes no action.

If this argument is successfully returned, and the specified pointer is non-NULL, then the allocated memory is freed.

Description

The IMA_FreeMemory() API frees the memory returned by an IMA API.

Return Values

IMA_ERROR_INVALID_PARAMETER

Returned if the pMemory parameter is non-NULL, and specifies a memory area to which data cannot be written.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/storage/snia-ima
Interface Stability
Volatile
MT-Level
Safe

See Also

libima(3LIB), attributes(7), IMA_GetLhbaOidList(3IMA), IMA_GetLnpOidList(3IMA), IMA_GetLuOidList(3IMA), IMA_GetNonSharedNodeOidList(3IMA), IMA_GetPhbaOidList(3IMA), IMA_GetPnpOidList(3IMA), IMA_GetTargetOidList(3IMA)