User`s guide
Cray XMT™ Programming Environment User’s Guide
H.5 LUC Callback Functions
The LucEndpoint class uses the following callback functions:
• LUC_RPC_Function_InOut
• LUC_Mem_Avail_Completion
• LUC_Completion_Handler
H.5.1 LUC_RPC_Function_InOut
The LUC runtime calls LUC_RPC_Function_InOut callback when a remote
client makes a request.
The application must call the registerRemoteCall method to register
LUC_RPC_Function_InOut callback functions.
The application should return LUC_ERR_OK when successful. The application
should not return or redefine any other predefined return codes.
Syntax
typedef luc_error_t (*LUC_RPC_Function_InOut)(void *inData,
uint64_t inDataLen,
void ** outData,
uint64_t *outDataLen,
void ** completionArg,
LUC_Mem_Avail_Completion *completionFctn,
luc_endpoint_id_t callerEndpoint);
160 S–2479–20