rpc_xprt_sw...et_main_xprt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rpc_xprt_sw...et_main_xprt(9) ✨

okay bestie, so this is a page from the Kernel API Manual and it's literally about grabbing the main character of an xprt switch πŸŽ€ yes, the whole thing is one function, and no, it's not scary, i promise 🫢


πŸ’– NAME πŸ’–

rpc_xprt_switch_get_main_xprt β€” Get the 'main' xprt for an xprt switch.

like... you have a whole switch of transports and you want the main one?? that's the vibe πŸ’…


🌸 SYNOPSIS 🌸

struct rpc_xprt * rpc_xprt_switch_get_main_xprt (struct rpc_xprt_switch
*xps );

that's it. that's the whole signature. she's short and she knows it ⭐


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xps β€” pointer to struct rpc_xprt_switch. it's giving "here's the switch, now go find her main xprt" 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/sunrpc/xprtmultipath.c, plus the whole friend group of related functions β€” no cap, they're all here:

iykyk 😌✨


πŸ’€ friendly reminder that this is kernel territory β€” read the actual source before you go poking at it, bestie. i'm just here to make the manpage cute, not to make up behaviour fr fr.

so yeah, that's the whole page πŸ“ huge slay, very demure, very kernel. written for ./net/sunrpc, dated October 2026 β€” mwah, love that for us πŸ’œπŸŽ€πŸ§š

πŸ“¦ where this page comes from