OpenFAM Reference Implementation

openfam::fam::fam_context_close

Returns a user specific fam_context object.

Synopsis

void fam_context_close(fam_context *);

Description

This method closes user specific fam_context object. Any pending non-blocking calls from this context should be ensured to be completed using fam_quiet call.

Input Arguments

fam_context - user specific fam_context object.

Return Values

None. Throws Fam_Exception on error.

Fam Error Numbers

ErrorDescription
FAM_ERR_NOPERMCaller does not have access rights
FAM_ERR_LIBFABRICLibfabric error occurred.
FAM_ERR_RPCCommunication error from grpc layer.
FAM_ERR_RPC_CLIENT_NOTFOUNDRPC service not available.
FAM_ERR_TIMEOUTNumber of libfabric retry count reached.

Notes

Any attempt to re-use the fam_context object after fam_context_close may result in undefined behavior.