rpc_localaddr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ rpc_localaddr(9) β€” Kernel API Manual, but make it bestie-friendly πŸŽ€

okay so bestie, this is the Kernel API Manual page for rpc_localaddr(9), and it’s literally about discovering the local endpoint address for an RPC client. no cap. πŸ’…

🌈 NAME 🌈

rpc_localaddr β€” discover local endpoint address for an RPC client.

✨ SYNOPSIS ✨

int rpc_localaddr (struct rpc_clnt *clnt , struct sockaddr *buf , size_t
       buflen );

🌸 ARGUMENTS 🌸

  • clnt β€” RPC client structure
  • buf β€” target buffer
  • buflen β€” size of target buffer, in bytes

πŸ’– DESCRIPTION πŸ’–

If it slays, this function returns zero and fills in buf and buflen; otherwise, a negative errno is returned. that’s the whole mood. ✨

This works even if the underlying transport is not currently connected, or if the upper layer never previously provided a source address. yes bestie, it still pulls it off. πŸ’…

The result of this function call is transient: multiple calls in succession may give different results, depending on how local networking configuration changes over time. so don’t be surprised when the vibe check changes between calls, fr fr. πŸ¦‹

πŸ’… SEE ALSO πŸ’…

Kernel file ./net/sunrpc/clnt.c β€” plus the whole bestie lineup:


xoxo, your kernel bestie 🫢 source/version: ./net/sunrpc Β· date: October 2026 Β· page: rpc_localaddr(9) πŸ’–βœ¨

πŸ“¦ where this page comes from