rpc_xprt_swi...t_roundrobin(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct 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 πŸ“–

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