STRUCT RDMA_DEV_ADDR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the bound_dev_if net_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 has network (an enum rdma_network_type) and hoplimit (an int) β€” 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 πŸ¦‹


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