|
| 1 | +===================== |
| 2 | +RDMA_RESOLVE_ADDRINFO |
| 3 | +===================== |
| 4 | + |
| 5 | +--------------------------------------------------------- |
| 6 | +Resolve RDMA addresses which supports both DNS and IB SA. |
| 7 | +--------------------------------------------------------- |
| 8 | + |
| 9 | +:Date: 2025-02-06 |
| 10 | +:Manual section: 3 |
| 11 | +:Manual group: Librdmacm Programmer's Manual |
| 12 | + |
| 13 | + |
| 14 | +SYNOPSIS |
| 15 | +======== |
| 16 | + |
| 17 | +#include <rdma/rdma_cma.h> |
| 18 | + |
| 19 | +int rdma_resolve_addrinfo(struct rdma_cm_id \*id, const char \*node, const char \*service, const struct rdma_addrinfo \*hints); |
| 20 | + |
| 21 | +ARGUMENTS |
| 22 | +========= |
| 23 | + |
| 24 | +id RDMA identifier. |
| 25 | + |
| 26 | +node Optional, name, dotted-decimal IPv4, or IPv6 hex address to resolve. |
| 27 | + |
| 28 | +service The service name or port number of address. |
| 29 | + |
| 30 | +hints Reference to an rdma_addrinfo structure containing hints about the type of service the caller supports. |
| 31 | + |
| 32 | +DESCRIPTION |
| 33 | +=========== |
| 34 | + |
| 35 | +This call submits an asynchronous address resolution request. The behavior is similar to rdma_getaddrinfo(), |
| 36 | +except that the operation is asynchronous, generating an event on the RDMA CM event channel that is |
| 37 | +associated with the specified rdma_cm_id when complete. The %node, %service, and %hints parameters are defined |
| 38 | +similarly to rdma_getaddrinfo(). |
| 39 | + |
| 40 | +RETURN VALUE |
| 41 | +============ |
| 42 | + |
| 43 | +Returns 0 on success. Success indicates that asynchronous address resolution was initiated. The result of |
| 44 | +the resolution, whether successful or failed, will be reported as an event on the related event channel. |
| 45 | + |
| 46 | +Returns -1 on error, errno will be set to indicate the failure reason. The address resolution was not |
| 47 | +started, and no event will be generated on the event channel. |
| 48 | + |
| 49 | +NOTES |
| 50 | +===== |
| 51 | + |
| 52 | +This call supports both DNS and IB SA resolution, depends on the hints.ai_flags: |
| 53 | + - RAI_DNS: Performs address resolution using DNS. |
| 54 | + - RAI_SA: Performs address resolution using the Infiniband SA. The rdma_cm_id associated with the call must be bound to an Infiniband port, or an error will occur. The %node parameter must be null (not supported). %Service should be an IB service name or ID. |
| 55 | + |
| 56 | +These 2 flags are mutual-exclusive; If none of them is set then DNS is the default. |
| 57 | + |
| 58 | +The cm event RDMA_CM_EVENT_ADDRINFO_RESOLVED (on success) or RDMA_CM_EVENT_ADDRINFO_ERROR (on failure) is generated. |
| 59 | + |
| 60 | +SEE ALSO |
| 61 | +======== |
| 62 | + |
| 63 | +rdma_getaddrinfo(3), rdma_query_addrinfo(3) |
| 64 | + |
| 65 | +AUTHOR |
| 66 | +====== |
| 67 | + |
| 68 | + |
0 commit comments