rpc_clnt_test_and_add_xprt(9)
πΈ rpc_clnt_test_and_add_xprt(9) πΈ
okay so bestie, welcome to the Kernel API Manual page for rpc_clnt_test_and_add_xprt(9) β yes that's a whole mouthful, we're gonna get through it together π
β¨ NAME β¨
rpc_clnt_test_and_add_xprt β literally test and add a new transport to a rpc_clnt. Two jobs, one function, main character energy fr fr π
π¦ SYNOPSIS π¦
int rpc_clnt_test_and_add_xprt (struct rpc_clnt *clnt , struct
rpc_xprt_switch *xps , struct rpc_xprt *xprt , void *in_max_connect );
like, it returns an int, and it takes four things. that's the whole vibe check π«Ά
π ARGUMENTS π
okay so here's the cast of characters, and every single one of them matters, no skipping π
clntβ pointer tostruct rpc_clnt. this is the client bestie in question πxpsβ pointer tostruct rpc_xprt_switch, (yes there's a lil comma in the original, we keep it, we respect it π)xprtβ pointerstruct rpc_xprt. the transport itself, the little guy we're testing β¨in_max_connectβ pointer to themax_connectvalue for the passed inxprttransport. like, the connect limit that came in with it, lowkey important π₯
π SEE ALSO π
the full squad, everybody's here, no cap. kernel file ./net/sunrpc/clnt.c plus a whole friend group:
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_localaddr(9)rpc_net_ns(9)rpc_max_payload(9)rpc_max_bc_payload(9)rpc_force_rebind(9)rpc_clnt_setup_test_and_add_xprt(9)rpc_clnt_add_xprt(9)
ngl if you got here by typing the wrong thing, that's okay, we've all been there π but like, go read rpc_clnt_add_xprt(9) if you wanted the plain version, iykyk π
and that's the page bestie!! π source/version situation: this whole thing lives in ./net/sunrpc, dated October 2026, and the page is rpc_clnt_test_and_add_xprt(9) β slay, ate, periodt πππ
π¦ 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