rtrs_addr_to_str(9)
π rtrs_addr_to_str(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a tiny little function in the kernel's RDMA corner and it's genuinely so straightforward you're gonna slay it.
πΈ NAME πΈ
rtrs_addr_to_str β convert rtrs_addr to a string "src@dst" π
β¨ SYNOPSIS β¨
int rtrs_addr_to_str (const struct rtrs_addr *addr , char *buf , size_t
len );
π ARGUMENTS π
addrβ thertrs_addrstructure to be converted π«Ά like, this is the thing you're turning into text.bufβ string containing source and destination addr of a path separated by''I.e."ip:1.1.1.1ip:1.1.1.2""ip:1.1.1.1ip:1.1.1.2". π yes, that's literally how it's written, no cap.lenβ string length β
π¦ DESCRIPTION π¦
the return value is the number of characters written into buf, not including the trailing ' '. π
that's it. that's the whole vibe. π
π SEE ALSO π
- Kernel file
./drivers/infiniband/ulp/rtrs/rtrs.c rtrs_str_to_sockaddr(9)sockaddr_to_str(9)rtrs_addr_to_sockaddr(9)
and that's the whole page, bestie β go convert some addresses π
this little icon came from ./drivers/infiniband/ulp/rtrs and it's dated October 2026 β 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