rtrs_addr_to_sockaddr(9)
π NAME π
rtrs_addr_to_sockaddr β bestie, this one converts a path string like "src,dst" or "src@dst" into sockaddreses β¨ (yes that's the spelling in the original, we don't gatekeep typos here π«Ά)
π¦ SYNOPSIS π¦
int rtrs_addr_to_sockaddr (const char *str , size_t len , u16 port ,
struct rtrs_addr *addr );
π ARGUMENTS π
strβ the string holding the source and destination addr of a path, separated by','or''(that's literally what the page says, iykyk π). Like"ip:1.1.1.1,ip:1.1.1.2"or"ip:1.1.1.1ip:1.1.1.2". And listen: ifstrcontains only one address, that one is considered to be the destination, no cap πlenβ the string length, periodt.portβ Destination port number. That's it, that's the whole vibe π₯addrβ gets set to the source/destination address, or toNULLifstrdoesn't contain any source address. Main character energy for a pointer ngl π
π DESCRIPTION π
Returns zero if the conversion was successful. Non-zero otherwise. That's the entire personality. Slay β¨
β SEE ALSO β
- Kernel file
./drivers/infiniband/ulp/rtrs/rtrs.c rtrs_str_to_sockaddr(9)sockaddr_to_str(9)rtrs_addr_to_str(9)
okay that's the whole page bestie, go touch some grass π
this lil gem comes to you from the Kernel API Manual, source ./drivers/inferiband/ulp/rtrs β wait, we're keeping it exact: ./drivers/infiniband/ulp/rtrs π¦ β dated October 2026, and it's the rtrs_addr_to_sockaddr(9) page. mwah, ily, bye ππ
π¦ 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