svc_xprt_names(9)
π 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 aconst 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:
svc_reg_xprt_class(9)svc_unreg_xprt_class(9)svc_print_xprts(9)svc_xprt_deferred_close(9)svc_xprt_received(9)svc_xprt_create_from_sa(9)svc_xprt_create(9)svc_print_addr(9)svc_xprt_enqueue(9)svc_reserve(9)svc_wake_up(9)svc_recv(9)svc_send(9)svc_xprt_close(9)svc_xprt_destroy_all(9)svc_find_listener(9)svc_find_xprt(9)
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
- 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