rpc_localaddr(9)
π 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 structurebufβ target bufferbuflenβ 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:
rpc_create(9)rpc_clone_client(9)rpc_clone_client_set_auth(9)rpc_switch_client_transport(9)rpc_clnt_iterate_for_each_xprt(9)rpc_cancel_tasks(9)rpc_hold_client(9)rpc_release_client(9)rpc_bind_new_program(9)rpc_run_task(9)rpc_call_sync(9)rpc_call_async(9)rpc_run_bc_task(9)rpc_prepare_reply_pages(9)rpc_peeraddr(9)rpc_peeraddr2str(9)rpc_net_ns(9)rpc_max_payload(9)rpc_max_bc_payload(9)rpc_force_rebind(9)rpc_clnt_test_and_add_xprt(9)rpc_clnt_setup_test_and_add_xprt(9)rpc_clnt_add_xprt(9)
xoxo, your kernel bestie π«Ά source/version: ./net/sunrpc Β· date: October 2026 Β· page: rpc_localaddr(9) πβ¨
π¦ 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