xprt_iter_init(9)
π xprt_iter_init(9) π
okay so this is a page straight outta the Kernel API Manual, bestie β yes, the Kernel API Manual, we're in the big leagues now β¨
πΈ NAME πΈ
xprt_iter_init β literally just initialise an xprt iterator, that's the whole vibe π
β¨ SYNOPSIS β¨
void xprt_iter_init (struct rpc_xprt_iter *xpi , struct rpc_xprt_switch
*xps );
no cap, that's the exact signature β copy it character for character or the compiler will absolutely come for you π
π¦ ARGUMENTS π¦
xpiβ pointer torpc_xprt_iter. yes bestie, it's a pointer, it's an iterator, it's giving main character energy πxpsβ pointer torpc_xprt_switch. the switch in question, the whole reason we're here π«Ά
π DESCRIPTION π
so what it actually does: it initialises the iterator to use the default iterator ops as set in xps. that's it, that's the tea β
and like β heads up β this function is mainly intended for internal use in the rpc_client. so it's not really a "come hang out and call me from anywhere" kind of function, it's more of an iykyk internal situation π
π₯ SEE ALSO π₯
also go look at the kernel file ./net/sunrpc/xprtmultipath.c β that's where the lore lives π and while you're there, the whole friend group:
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_listall(9)xprt_iter_xchg_switch(9)xprt_iter_destroy(9)xprt_iter_xprt(9)xprt_iter_get_next(9)
π reminder: this is a void function, so don't go assigning its return value to anything β there isn't one, bestie, it's giving nothing and that's on purpose π
and that's the page!! brought to you by ./net/sunrpc, dated October 2026 β slay, go init some iterators responsibly, mwah ππ§ββοΈ
π¦ 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