OpenFAM Reference Implementation

openfam::fam::fam_unmap

Unmap a data item in FAM from the process virtual address space.

Synopsis

void fam_unmap(void *local, Fam_Descriptor *descriptor);

Description

This method unmaps a data item in FAM from the process virtual address space.

Input Arguments

NameDescription
Local Local pointer to be unmapped.
Descriptor Descriptor associated with the data item in FAM to be unmapped.

Return Values

None. Throws an exception on error.

Exceptions

ExceptionDescription
Fam_InvalidOption_Exceptionincorrect parameters are passed.
Fam_Unimplemented_ExceptionAPI not implemented error. (Only for memory server allocator)
FAM_ERR_NOPERMCaller does not have access rights
FAM_ERR_ALREADYEXISTthe data item name is already present in FAM
FAM_ERR_GRPCthere is a communication error with memory server
FAM_ERR_RPC_CLIENT_NOTFOUNDMemory server initialization failure

Notes

None.

Example

See example under fam_map