rpc_clone_client(9)
π rpc_clone_client(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel land today, and yes it's iconic. Buckle up π
β¨ NAME β¨
rpc_clone_client β clone an RPC client structure π«Ά (it's giving copy-paste but make it kernel)
πΈ SYNOPSIS πΈ
struct rpc_clnt * rpc_clone_client (struct rpc_clnt *clnt );
π¦ ARGUMENTS π¦
clntβ the RPC client whose parameters are copied π literally the blueprint, the moment, the source of truth
β DESCRIPTION β
Returns a fresh RPC client or an ERR_PTR.
That's the whole vibe ngl β you hand it a client, you get a brand new one back, or you get an ERR_PTR if the universe said no π. Check your return value, bestie, no cap. π
π SEE ALSO π
The kernel file ./net/sunrpc/clnt.c is where the magic lives, and here's the whole friend group π
rpc_create(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_localaddr(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)
and that's the page, periodt π
this lil beauty comes to you from ./net/sunrpc and it's dated October 2026 β write it down, screenshot it, tattoo it, whatever feels right π§πβ¨
π¦ 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