xprt_iter_get_next(9)
β¨ 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 torpc_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 π
rpc_xprt_switch_add_xprt(9)rpc_xprt_switch_remove_xprt(9)rpc_xprt_switch_get_main_xprt(9)xprt_switch_alloc(9)xprt_switch_get(9)xprt_switch_put(9)rpc_xprt_switch_set_roundrobin(9)xprt_iter_init(9)xprt_iter_init_listall(9)xprt_iter_xchg_switch(9)xprt_iter_destroy(9)xprt_iter_xprt(9)
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
- 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