xprt_iter_init_listall(9)
π« NAME π«
xprt_iter_init_listall β bestie, this is the one that initialises an xprt iterator β¨
So like, you're in the Kernel API Manual (section 9, iykyk) and this is the glow-up function that gets your iterator ready to go π
πΈ SYNOPSIS πΈ
void xprt_iter_init_listall (struct rpc_xprt_iter *xpi , struct
rpc_xprt_switch *xps );
Yeah it's a void, she returns nothing, she just does the thing and leaves, main character energy fr fr π
π¦ ARGUMENTS π¦
xpiβ pointer torpc_xprt_iter. This is the iterator babe, the little wanderer that's gonna walk the list πxpsβ pointer torpc_xprt_switch. This is the switch, aka the thing holding all the entries, and yes she's literally the whole vibe π
π₯ DESCRIPTION π₯
Okay so here's the tea β β this function initialises the iterator so it will iterate once through the entire list of entries in xps. One (1) single pass, no cap. She goes through all of them, and then she's done. Periodt πβ¨
ngl "once through the entire list" is the whole personality here β it's not a loop-de-loop situation, it's a one-and-done situation π«Ά
π SEE ALSO π
Kernel file ./net/sunrpc/xprtmultipath.c β that's where the magic lives, go read it bestie π
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_xchg_switch(9)xprt_iter_destroy(9)xprt_iter_xprt(9)xprt_iter_get_next(9)
Like, literally the whole friend group, go say hi to all of them ππ
π SIGN-OFF π
This lil page came out of ./net/sunrpc and is dated October 2026 β she's from the future, iconic π§ββοΈβ Slay responsibly, and remember: one pass through the list, then log off π
π
π¦ 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