RDMA_GET_DST_PORT(3)
β¨ RDMA_GET_DST_PORT β¨
okay bestie, welcome to the Librdmacm Programmer's Manual β this one's about rdma_get_dst_port, and it's a short one so we can be cute about it π
π« NAME π«
rdma_get_dst_port β returns the remote port number of a bound rdma_cm_id.
like. it tells you which port the other side is on. that's the whole gig. no cap. π
π¦ SYNOPSIS π¦
#include <rdma/rdma_cma.h>
uint16_t rdma_get_dst_port (struct rdma_cm_id *id);
yes that's the whole function signature, she's little but she's fierce π
πΈ ARGUMENTS πΈ
idβ the RDMA identifier. your littlerdma_cm_idbestie. you hand her over and she spills the tea about the peer's port π«Ά
π DESCRIPTION π
Returns the remote port number for an rdma_cm_id that has been bound to a remote address.
that's it. that's the function. she's a getter. she gets. the way that she just. gets the port. iconic behavior honestly πβ¨
heads up: the rdma_cm_id needs to be bound to a remote address for this to give you the goods β otherwise see below π
β RETURN VALUE β
Returns the 16-bit port identifier associated with the peer endpoint. π―
If the rdma_cm_id is not connected, the returned value is 0.
so like, if you get a 0 back, she's telling you nothing's connected yet. that's your vibe check result. 0 = no connection, bestie π
π SEE ALSO π
go read these next, they're all part of the same friend group:
rdma_connect(3)rdma_accept(3)rdma_get_cm_event(3)rdma_get_src_port(3)rdma_get_local_addr(3)rdma_get_peer_addr(3)
and that's the page!! this came from the Librdmacm Programmer's Manual, dated 2007-05-15, part of the librdmacm package (version librdmacm). mwah, go write some RDMA code, you got this π§π
π¦ where this page comes from
- alpine 3.24: rdma-core-doc 61.0-r0 Β· GPL-2.0-only OR BSD-2-Clause
- 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
- centos-stream 10: rdma-core-devel 62.0-3.el10 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- centos-stream 9: rdma-core-devel 61.0-3.el9 Β· GPLv2 or BSD
- debian bookworm: librdmacm-dev 44.0-2 Β· BSD-MIT OR GPL-2.0-only
- debian trixie: librdmacm-dev 56.1-1 Β· BSD-MIT OR GPL-2.0-only
- fedora 43: rdma-core-devel 58.0-4.fc43 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 43: rdma-core-devel 58.0-4.fc43 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.0-2.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.0-2.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.1^20260812git975bdaf-1.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- fedora 44: rdma-core-devel 61.1^20260812git975bdaf-1.fc44 Β· GPL-2.0-only OR BSD-2-Clause AND BSD-3-Clause
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixos 26.05: rdma-core 62.0
- nixpkgs unstable: rdma-core 65.0
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- opensuse-leap 16.0: rdma-core-devel 56.1-160000.2.2 Β· BSD-2-Clause OR GPL-2.0-only
- ubuntu jammy: librdmacm-dev 39.0-1 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: librdmacm-dev 50.0-2build2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu noble: librdmacm-dev 50.0-2ubuntu0.2 Β· BSD-MIT OR GPL-2.0-only
- ubuntu questing: librdmacm-dev 56.1-1ubuntu1
- ubuntu resolute: librdmacm-dev 61.0-2ubuntu3 Β· BSD-MIT OR GPL-2.0-only
- 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