OpenFAM Reference Implementation

openfam::fam::fam_deallocate

Deallocate space being used by a data item in a region of FAM.

Synopsis

void fam_deallocate(Fam_Descriptor *descriptor);

Description

This method triggers a deallocation of previously allocated space for a data item in some region of FAM.

Input Arguments

NameDescription
descriptorDescriptor associated with the space to deallocate.

 

Return Values

None. Throws Fam_Exception on error.

Fam Error Numbers

ErrorDescription
FAM_ERR_NOPERMCaller does not have access rights
FAM_ERR_NOTFOUNDData item name is not present in FAM
FAM_ERR_RPCCommunication error from grpc layer.
FAM_ERR_RPC_CLIENT_NOTFOUNDRPC service not available.
FAM_ERR_METADATAMetadata service error.
FAM_ERR_MEMORYMemory service error.
FAM_ERR_RESOURCEResource not available.

Notes

Note that if a descriptor is used to access deallocated space, behavior of the library is implementation dependent. The implementation may reclaim space some indeterminate amount of time after the method is called, to perform a memset operation to zero deallocated memory space.

Example

See fam_allocate