STRUCT RDMA_DEV_ADDR(9)
π NAME π
okay so bestie, gather round β struct rdma_dev_addr is the struct that contains resolved RDMA hardware addresses. that's the whole vibe. it's the little glow-up container where your addresses come out all resolved and pretty β¨
(this is a page from the Kernel API Manual, section 9, and yes we're reading it for fun. iykyk π )
β¨ SYNOPSIS β¨
like, literally, here's the whole shape of her. no notes:
struct rdma_dev_addr {
unsigned char src_dev_addr[MAX_ADDR_LEN];
unsigned char dst_dev_addr[MAX_ADDR_LEN];
unsigned char broadcast[MAX_ADDR_LEN];
unsigned short dev_type;
int bound_dev_if;
enum rdma_transport_type transport;
struct net *net;
const struct ib_gid_attr *sgid_attr;
enum rdma_network_type network;
int hoplimit;
};
she's got ten fields and every single one is doing her own little thing. main character energy fr fr π
πΈ Members πΈ
src_dev_addrβ the source MAC address. the "where you're coming from" of it all π«Άdst_dev_addrβ the destination MAC address. where you're headed, bestie π¦broadcastβ the broadcast address of the device. shouting it to everybody in the room π£dev_typeβ the interface hardware type of the device. so we know what kind of little guy we're dealing with πbound_dev_ifβ an optional device interface index. optional!! she's not clingy πtransportβ the transport type used. the ride you picked, lowkey πnetβ the network namespace containing thebound_dev_ifnet_dev. her whole little universe πsgid_attrβ GID attribute to use for identified SGID. yes bestie the GID gets an attribute, that's just how she rolls π
ngl, the struct up top also hasnetwork(anenum rdma_network_type) andhoplimit(anint) β they're right there in the definition, but the Members rundown doesn't spell them out. so I'm not gonna make anything up about them. no cap π
π¦ SEE ALSO π¦
- the kernel file
./include/rdma/ib_addr.hβ go read her, she's iconic rdma_translate_ip(9)rdma_resolve_ip(9)
and that's the page!! π slay, you now know struct rdma_dev_addr better than you know your own playlist π
with love, from ./include/rdma, dated October 2026 β see you in the next group chat, bestie π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms