xprt_iter_xprt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ xprt_iter_xprt(9) β€” bestie, we’re in the Kernel API Manual now πŸ¦‹

Okay so this page is lowkey tiny, but the rcu_read_lock caveat is highkey important. Let’s go πŸ’…


🌸 NAME 🌸

xprt_iter_xprt β€” returns the rpc_xprt pointed to by the cursor. Periodt. ✨


✨ SYNOPSIS ✨

struct rpc_xprt * xprt_iter_xprt (struct rpc_xprt_iter *xpi );

πŸŽ€ ARGUMENTS πŸŽ€

  • xpi β€” pointer to rpc_xprt_iter. That’s the cursor situation, iykyk 🫢

πŸ’– DESCRIPTION πŸ’–

Returns a pointer to the struct rpc_xprt that is currently pointed to by the cursor. Slay. 🌟

⚠️ Bestie, the caller must be holding rcu_read_lock. Not optional, fr fr. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file is ./net/sunrpc/xprtmultipath.c β€” go peek, bestie. πŸ‘€


mwah πŸ’‹ β€” this cutie lives in ./net/sunrpc and is dated October 2026. 🫢

πŸ“¦ where this page comes from