rpc_peeraddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rpc_peeraddr β€” a Kernel API Manual moment (section 9, bestie)

okay so first of all, this whole page lives in the Kernel API Manual, section 9 β€” very "kernel devs only" of it, we love that for them πŸŽ€

✨ NAME ✨

rpc_peeraddr β€” extract remote peer address from clnt's xprt

like literally just... get the remote peer's address out of the clnt's xprt. that's the whole vibe. πŸ¦‹

✨ SYNOPSIS ✨

size_t rpc_peeraddr (struct rpc_clnt *clnt , struct sockaddr *buf ,
       size_t bufsize );

✨ ARGUMENTS ✨

  • clnt β€” the RPC client structure, the main character of this function ngl πŸ‘‘
  • buf β€” target buffer. it's giving "put the address here please" 🎯
  • bufsize β€” length of that target buffer. yes bestie, it needs to know how much room it has πŸ™ˆ

✨ DESCRIPTION ✨

so the function returns the number of bytes that are actually in the stored address ✨ not the size of the buffer, not a guess, the real byte count. iconic honestly.

✨ SEE ALSO ✨

heads up, this all lives in the kernel file ./net/sunrpc/clnt.c, and here's the whole friend group πŸ’–


and that's the whole page, bestie 🫢 written from ./net/sunrpc with a date stamp of October 2026 β€” slay, go read the rest of section 9, i'm obsessed πŸ’…βœ¨

πŸ“¦ where this page comes from