RDMA_QUERY_ADDRINFO(3)
β¨ RDMA_QUERY_ADDRINFO β¨
okay bestie, welcome to the Librdmacm Programmer's Manual section 3 β yes, the rdma_query_addrinfo(3) page, and no, you're not lost, this is exactly where you're supposed to be π
πΈ NAME πΈ
RDMA_QUERY_ADDRINFO β the little function that goes and queries the resolved address information. it's giving "hey did that resolve actually land?" energy π¦
π SYNOPSIS π
#include <rdma/rdma_cma.h>
int rdma_query_addrinfo(struct rdma_cm_id *id, struct rdma_addrinfo
**info);
like. that's the whole thing. two args, one include, no drama π
π ARGUMENTS π
idβ the RDMA identifier. your lil handle for the connection thing you're doing. so main character.infoβ a pointer to a linked list ofrdma_addrinfostructures holding the resolved information. yes, linked list, yes, pointer-to-pointer, we love a level of indirection around here π
π₯ DESCRIPTION π₯
so what does it actually do, bestie? it retrieves the resulting rdma_addrinfo structures from a successful rdma_resolve_addrinfo() operation. that's it. that's the function. it's the "okay so did my resolve work, and what did it give me" follow-up call π«Ά
note the word successful up there β this is the retrieval step after the resolving step. it's a duo, not a solo act β¨
β RETURN VALUE β
- on success,
0is returned, andinfocontains a resolved address information. slay π - on error,
-1is returned, anderrnowill be set to indicate the failure reason. so like, checkerrno. fr fr π
π NOTES π
the info must be released with rdma_freeaddrinfo(3). like, that's not a suggestion, that's a whole obligation. clean up after yourself, queen π§
π SEE ALSO π
iykyk π₯
π AUTHOR π
Mark Zhang <markzhang@nvidia.com> β ty for the lore, king π
and that's the page, babe π
this was the Librdmacm Programmer's Manual, page RDMA_QUERY_ADDRINFO(3), dated 2025-02-06 β go forth and resolve, then query, then free πΈβ¨π¦
π¦ where this page comes from
- arch rolling: rdma-core 65.0-1 Β· GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-MIT AND GPL-2.0-or-later OR LicenseRef-OpenIB.org-BSD-FreeBSD AND GPL-2.0-or-later OR LicenseRef-Intel-BSD-3-Clause AND GPL-2.0-or-later OR LicenseRef-PathScale-BSD-Patent-License AND CC0-1.0 AND MIT AND BSD-2-Clause AND CPL-1.0 OR BSD-2-Clause OR GPL-2.0-or-later
- nixpkgs unstable: rdma-core 65.0
- ubuntu stonking: librdmacm-dev 64.0-1ubuntu1 Β· BSD-MIT OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms