xprt_iter_get_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xprt_iter_get_next ✨

okay so this is a page from the Kernel API Manual (xprt_iter_get_next(9)) and bestie it's literally just one function doing one very specific little thing. tiny page, immaculate vibes, let's go πŸ’…


πŸ¦‹ NAME πŸ¦‹

xprt_iter_get_next β€” returns the next rpc_xprt following the cursor 🎯


🌸 SYNOPSIS 🌸

struct rpc_xprt * xprt_iter_get_next (struct rpc_xprt_iter *xpi );

like, that's the whole signature. she's short and she knows it ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • xpi β€” pointer to rpc_xprt_iter. that's it, that's the one (1) argument, and it's the iterator you're walking through 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: xprt_iter_get_next returns a reference to the struct rpc_xprt that immediately follows the entry your cursor is currently pointing at. like scrolling to the next post but for transports 🌈

that's literally it. no cap, no hidden extras, no surprises. the next one after the cursor. periodt πŸ’…

lowkey important detail: it hands you back a reference β€” the manpage says reference, so don't go assuming anything extra about refcounting beyond what's written here πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

sibling functions!!! the whole squad lives in the kernel file ./net/sunrpc/xprtmultipath.c and here's everyone you might wanna meet πŸ’œ


and that's the whole page bestie, go read some source code 🧚

🏁 cute little sign-off: this slay of a page comes from ./net/sunrpc and it's dated October 2026 β€” bookmark it, screenshot it, put it on your fridge, iykyk πŸ“βœ¨

πŸ“¦ where this page comes from