svc_xprt_names(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_xprt_names β€” a kernel API manual page, bestie edition

Okay so this is svc_xprt_names, and it lives in section 9 of the Kernel API Manual. It's a little function that formats a buffer with a list of transport names β€” the way your group chat formats a list of who's coming to the party. Cute, useful, lowkey underrated. Let's get into it πŸŽ€


✨ NAME ✨

svc_xprt_names β€” format a buffer with a list of transport names

Like, it takes a buffer and makes it pretty with transport names in it. That's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int svc_xprt_names (struct svc_serv *serv , char *buf , const int buflen
);

That's the whole signature, no cap. Three args, one int coming back at you πŸ’«


🌸 ARGUMENTS 🌸

  • serv β€” pointer to an RPC service. This is the main character of the operation, the service we're pulling transport names from πŸ‘‘
  • buf β€” pointer to a buffer to be filled in. Yes bestie, you bring the buffer, this function just fills it 🫢
  • buflen β€” length of buffer to be filled in. It's a const int, so it knows its limits and respects them πŸ’…

πŸ’– DESCRIPTION πŸ’–

So what it does: it fills in buf with a string containing a list of transport names, and each name is terminated with '0.

Then it returns the positive length of the filled-in string on success. Slay. ✨

But if an error occurs? It returns a negative errno value instead. Not slay, but honest πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

This one's got a whole friend group, iykyk. They all live in the kernel file ./net/sunrpc/svc_xprt.c:

That's the entire squad, no one left behind 🫢


And that's the page! 🌈 This little icon came from the ./net/sunrpc directory, dated October 2026 β€” so when you're reading it, just know the svc_xprt_names(9) girlies were out here formatting transport name lists and looking flawless doing it. Periodt. πŸ’œπŸŽ€

πŸ“¦ where this page comes from