rdma_resolve_ip(9)
π
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, thenetfield of theaddrstruct 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 of0indicates success. so yeah, check that status, it's giving status check π―.resolve_by_gid_attrβ resolve the ip based on the GID attribute fromrdma_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 π¦
- Kernel file
./include/rdma/ib_addr.hstruct rdma_dev_addr(9) rdma_translate_ip(9)
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
- 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