xprt_iter_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to rpc_xprt_iter. yes bestie, it's a pointer, it's an iterator, it's giving main character energy πŸ‘‘
  • xps β€” pointer to rpc_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:


πŸ’€ 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