rpc_hold_client(9)
π rpc_hold_client(9) π
okay so bestie, welcome to the rpc_hold_client page from the Kernel API Manual β section 9, kernel-flavored, and it's giving "small function, huge responsibility" energy fr fr. It's a whole one-liner of a function and it matters, so buckle up π
β¨ NAME β¨
rpc_hold_client β acquire a reference on an rpc_clnt π«Ά
like, you're literally just grabbing a refcount. that's it. that's the whole vibe. but do it right or things get ugly π
πΈ SYNOPSIS πΈ
void rpc_hold_client (struct rpc_clnt *clnt );
no return value, no drama β it's void, bestie π
π¦ ARGUMENTS π¦
clntβ therpc_clntyou wanna pin π like, this is the client struct you're putting a hold on so it doesn't get yanked out from under you. pin it, queen π
β DESCRIPTION β
This one pairs with rpc_release_client. π«Ά
that's it, that's the description β they're a matched set, a duo, a unit. you hold, you release. hold, release. what goes up must come down, what gets referenced must get unreferenced, periodt. π₯
ngl, this manpage is short, but that pairing note is the whole point β don't hold a client and then forget to release it, that's the plot of a horror movie π
π SEE ALSO π
okay so here's the whole sunrpc clique, all of them, no cap β every single one, because this function is a team player and the manpage says so π
- Kernel file
./net/sunrpc/clnt.c 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_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 whole page, bestie β short, sweet, and lowkey iconic π§ββοΈπ
sign-off szn π this little gem lives in ./net/sunrpc, and it's dated October 2026 β go hold those clients and release them like the responsible main character you are πβ¨
π¦ 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