rpc_clnt_set...and_add_xprt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Bestie, you're on the rpc_clnt_set...and_add_xprt(9) page in the Kernel API Manual, and the function we're hyping up is:

rpc_clnt_setup_test_and_add_xprt -

That's the whole NAME entry β€” just the function name and a dash, no extra description, and honestly? iconic minimalism πŸ’….

✨ SYNOPSIS ✨

int rpc_clnt_setup_test_and_add_xprt (struct rpc_clnt *clnt , struct
       rpc_xprt_switch *xps , struct rpc_xprt *xprt , void *data );

πŸŽ€ ARGUMENTS πŸŽ€

Here's the cast, bestie:

  • clnt β€” the struct rpc_clnt that's getting the new transport 🫢
  • xps β€” the rpc_xprt_switch that's holding the new transport ✨
  • xprt β€” the rpc_xprt to test πŸ”
  • data β€” a struct rpc_add_xprt_test pointer that holds the test function and test function call data πŸ’–

πŸ’… DESCRIPTION πŸ’…

Okay so this is an rpc_clnt_add_xprt setup function, and it returns 1, so:

  1. The caller of the test function must dereference the rpc_xprt_switch and the rpc_xprt.
  2. The test function must call rpc_xprt_switch_add_xprt, usually in the rpc_call_done routine.

Upon success (return of 1), the test function adds the new transport to the rpc_clnt xprt switch. Slay ✨

πŸ¦‹ SEE ALSO πŸ¦‹

The kernel file in the mix is ./net/sunrpc/clnt.c, and these are the SEE ALSO besties:


mwah πŸ’‹ that's a wrap! This one comes from ./net/sunrpc, dated October 2026, and it's the rpc_clnt_set...and_add_xprt(9) page. Bye bestie, go be iconic 🫢✨

πŸ“¦ where this page comes from