rpc_xprt_sw...et_main_xprt(9)
β¨ 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 tostruct 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:
rpc_xprt_switch_add_xprt(9)rpc_xprt_switch_remove_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_init_listall(9)xprt_iter_xchg_switch(9)xprt_iter_destroy(9)xprt_iter_xprt(9)xprt_iter_get_next(9)
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
- 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