svc_print_xprts(9)
β¨ svc_print_xprts(9) β¨
okay so this is a page from the Kernel API Manual, section 9, and bestie it is so specific it's almost cute. it's all about formatting a little transport list so you can actually print it. yes, that's the whole vibe. let's get into it π
π NAME π
svc_print_xprts β literally formats the transport list so it's ready for printing π¨οΈβ¨
πΈ SYNOPSIS πΈ
int svc_print_xprts (char *buf , int maxlen );
π¦ ARGUMENTS π¦
bufβ the target buffer where the formatted address goes, that's its whole job π«Άmaxlenβ the length of that target buffer, so it knows how much room it's working with
β DESCRIPTION β
so basically it fills in buf with a string holding a list of transport names, and every single name is terminated with <hotpink>'0</hotpink>. that's the delimiter, no cap.
β οΈ heads up: if the buffer is too small, some entries may be missing β but here's the slay part: it is guaranteed that all lines in the output buffer are complete. so you might lose a whole entry, but you'll never get a half-finished one. iconic behaviour honestly π
it returns the positive length of the filled-in string. periodt. π―
π₯ SEE ALSO π₯
kernel file <purple>./net/sunrpc/svc_xprt.c</purple> and honestly the whole friend group:
svc_reg_xprt_class(9)svc_unreg_xprt_class(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)svc_xprt_names(9)
and that's the whole page!! π§π this one's living in <purple>./net/sunrpc</purple>, dated October 2026, and it'll always answer to svc_print_xprts(9) β mwah, bye bestie πππ
π¦ 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