rdma_translate_ip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« rdma_translate_ip(9) β€” the Kernel API Manual tea β˜•

okay so bestie, welcome to rdma_translate_ip, a kernel API manual page from the Kernel API Manual, and honestly? she's short but she's iconic. let's get into it 🫢


✨ NAME ✨

rdma_translate_ip β€” literally translate a local IP address into an RDMA hardware address. no cap, that's the whole job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int rdma_translate_ip (const struct sockaddr *addr , struct
       rdma_dev_addr *dev_addr );

that's the signature, copy it exactly, don't come for me about the spacing, it's verbatim bestie 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” okay so the original page literally says -- undescribed -- and honestly? the manpage is gatekeeping πŸ™ˆ. it's a const struct sockaddr * (you can see that up in the synopsis) and that's all the tea we have.
  • dev_addr β€” also -- undescribed -- on the page, she's mysterious πŸ’€. in the synopsis she's a struct rdma_dev_addr *. that's it, that's the info.

no invented lore here, i'm not gonna make stuff up about parameters the page refuses to describe, periodt βœ‹


🌸 DESCRIPTION 🌸

here's the one (1) thing you actually need to know, and it's a real one:

the dev_addr->net field must be initialized before you call this. like, fr fr, initialize it. don't roll up to the function with an uninitialized net field, that's not the vibe πŸ’€

that's the entire description section. short queen, she ate and left no crumbs πŸ‘‘


🌈 SEE ALSO 🌈

  • Kernel file ./include/rdma/ib_addr.h β€” that's where the header lives, go look at it iykyk
  • struct rdma_dev_addr(9) β€” the struct in question, the main character of this whole page tbh
  • rdma_resolve_ip(9) β€” her sibling function, go read that one next bestie πŸ”₯

🧚 sign-off 🧚

and that's the page! source path is ./include/rdma, dated October 2026, manual name rdma_translate_ip(9) β€” so like, screenshot it, cite it, love it πŸ’–βœ¨πŸŽ€

go forth and initialize your dev_addr->net field, bestie. i'm so serious. πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from