xprt_switch_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xprt_switch_put(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk, this is a page straight out of the Kernel API Manual (xprt_switch_put(9)) and it's genuinely so simple you're gonna slay it. no cap. πŸ’–


✨ NAME ✨

xprt_switch_put β€” release a reference to a rpc_xprt_switch πŸ¦‹

like, you're literally just letting go. putting it down. releasing the reference. it's giving closure. πŸ’…


🌸 SYNOPSIS 🌸

void xprt_switch_put (struct rpc_xprt_switch *xps );

that's it. that's the whole vibe. one function, one arg, returns void (so like, nothing back, don't @ it). ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • xps β€” pointer to struct rpc_xprt_switch. it's a pointer, bestie, so be normal about it and pass a valid one fr fr. πŸ’œ

πŸ”₯ DESCRIPTION πŸ”₯

okay so the whole thing: you call this and it releases the reference to xps, and then it frees it once the refcount is zero. 🫢

that's the entire personality. it's a refcount drop with a lil cleanup on the side β€” when the last reference goes bye-bye, the thing actually gets freed. no cap, that's it, that's the function. icon behavior honestly πŸ‘‘


🌈 SEE ALSO 🌈

the kernel file is ./net/sunrpc/xprtmultipath.c and if you're obsessed (you are) here's the whole friend group you should also go read:

main character energy across the entire net/sunrpc directory honestly ⭐


πŸ’€ tiny reminder: xps is a pointer to struct rpc_xprt_switch, and the free only happens once the refcount is zero. it's literally in the description, don't come for me. πŸ™ˆ

and that's the page!! brought to you by ./net/sunrpc, dated October 2026, from the Kernel API Manual. mwah, go free those references responsibly πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from