rtrs_addr_to_sockaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: if str contains 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 to NULL if str doesn'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 ⭐


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