rdma_resolve_ip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rdma_resolve_ip β€” a Kernel API Manual moment (yes, the real one, from rdma_resolve_ip(9))

okay so bestie, picture this: you've got IP addresses and you've got RDMA hardware addresses, and they're literally not the same thing, and nobody's introducing them. that's this function's whole job. it resolves source and destination IP addresses to RDMA hardware addresses. matchmaker energy, fr fr. πŸ’–


✨ NAME ✨

rdma_resolve_ip β€” Resolve source and destination IP addresses to RDMA hardware addresses.


🌸 SYNOPSIS 🌸

int rdma_resolve_ip (struct sockaddr *src_addr , const struct sockaddr
*dst_addr , struct rdma_dev_addr *addr , unsigned long timeout_ms , void
(*callback)(int status, struct sockaddr *src_addr, struct rdma_dev_addr
*addr, void *context) , bool resolve_by_gid_attr , void *context );

πŸŽ€ ARGUMENTS πŸŽ€

  • src_addr β€” an optional source address you wanna use in the resolution. and if you don't provide one? no stress β€” a usable address will get handed back to you via the callback instead. the function's got you 🫢
  • dst_addr β€” the destination address that needs resolving. the main character of the lookup, ngl.
  • addr β€” a reference to a data location that receives the resolved addresses. and listen, this one has ✨rules✨: the data location must remain valid until the callback has been invoked. do not let it die early, bestie 😭. also, the net field of the addr struct must be valid. non-negotiable.
  • timeout_ms β€” how much time to wait for the address resolution to complete. the patience budget, basically ⏳.
  • callback β€” the call invoked once address resolution has completed, timed out, or been canceled. a status of 0 indicates success. so yeah, check that status, it's giving status check πŸ’―.
  • resolve_by_gid_attr β€” resolve the ip based on the GID attribute from rdma_dev_addr. that's the vibe. iykyk ✨
  • context β€” a user-specified context associated with the call. your little bag of stuff, carried along for the ride πŸŽ’.

πŸ¦‹ SEE ALSO πŸ¦‹

go read those, they're lowkey iconic too πŸ‘‘


fr fr before you dip: that addr data location has to stay valid until the callback fires. no cap. don't be out here freeing things early πŸ’€

okay that's the whole page, bestie, you ate that πŸŒˆπŸ’œ and this little gift came straight from ./include/rdma β€” the October 2026 edition, no less. slay, periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from