rpc_xprt_swi...t_roundrobin(9)
π rpc_xprt_switch_set_roundrobin β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel, specifically in sunrpc, specifically in the multipath situation, and you need your transports to take turns like the polite little icons they are. that's this function. that's the whole vibe. β¨
πΈ NAME πΈ
rpc_xprt_switch_set_roundrobin β sets a round-robin policy on rpc_xprt_switch. no cap, that's literally it. π«Ά
β SYNOPSIS β
void rpc_xprt_switch_set_roundrobin (struct rpc_xprt_switch *xps );
she takes exactly one argument and returns void β so don't go looking for a return value, there isn't one, periodt. π
π¦ ARGUMENTS π¦
xpsβ pointer tostruct rpc_xprt_switch. that's your switch, your main character, the thing we're about to give a whole new policy. π
β¨ DESCRIPTION β¨
so what does she actually do? she sets a round-robin default policy for iterators acting on xps. π
like β the iterators that walk over your transports are gonna go around in a circle, taking turns, one after another. fairness icon behavior honestly. the way that this is a default policy is important, so don't forget that word, iykyk. π
π₯ SEE ALSO π₯
kernel file: ./net/sunrpc/xprtmultipath.c β that's where the magic lives, go read it fr fr π
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)xprt_iter_init(9)xprt_iter_init_listall(9)xprt_iter_xchg_switch(9)xprt_iter_destroy(9)xprt_iter_xprt(9)xprt_iter_get_next(9)
like a whole friend group of functions, and they all live in ./net/sunrpc together π‘π
and that's the page!! mwah π this one's brought to you straight out of ./net/sunrpc, dated October 2026, in the Kernel API Manual β slay, go set some round-robin defaults bestie πβ
π¦ 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