rdma_translate_ip(9)
π« 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 aconst 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 astruct 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:
thedev_addr->netfield must be initialized before you call this. like, fr fr, initialize it. don't roll up to the function with an uninitializednetfield, 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 tbhrdma_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
- 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