Returned error rules

The librdmacm functions return 0 to indicate success, and a negative value to indicate failure.

If a function operates asynchronously, a return value of 0 means that the operation was successfully started. The operation might still return an error. You must check the status of the related event. If the return value is -1, the errno can be examined for additional information of the failure.

Item Description
=0 Success
= -1 Error . See the errno for details of the error message.