sockaddr_to_str(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is sockaddr_to_str(9) β€” yes, from the Kernel API Manual β€” and it's literally here to convert sockaddr to a string ✨ that's the whole assignment, no cap.

πŸ¦‹ SYNOPSIS πŸ¦‹

int sockaddr_to_str (const struct sockaddr *addr , char *buf , size_t
       len );

πŸ’– ARGUMENTS πŸ’–

  • addr β€” the sockadddr structure to be converted. (yes, sockadddr, we're keeping it exactly as written πŸ’…)
  • buf β€” string containing socket addr.
  • len β€” string length.

🌈 DESCRIPTION 🌈

okay so the return value is the number of characters written into buf not including the trailing ' ' πŸ‘€. If len is == 0 the function returns 0.. β€” yep, two dots and all, bestie 😭.

πŸ”₯ SEE ALSO πŸ”₯


so yeah, that's the page 🫢 source/version: ./drivers/infiniband/ulp/rtrs, dated October 2026, manual name sockaddr_to_str(9) β€” catch u later bestie, mwah πŸ’œβœ¨

πŸ“¦ where this page comes from