xs_local_print_stats(9)
π xs_local_print_stats(9) β the kernel API manual, but make it cute
okay so this is xs_local_print_stats from the kernel API manual (section 9, for the uninitiated π§). it's a lil function that shows you the AF_LOCAL-socket-specific stats. that's the whole vibe. let's get into it π
β¨ NAME β¨
xs_local_print_stats β display AF_LOCAL socket-specific stats π
like, it prints the stats. the AF_LOCAL socket ones specifically. no cap, that's it.
πΈ SYNOPSIS πΈ
void xs_local_print_stats (struct rpc_xprt *xprt , struct seq_file *seq
);
she takes two args and returns void β nothing comes back out, she just does her thing and dips π
(the line break before the closing paren is exactly how it's written in the original, bestie, don't come for me)
π¦ ARGUMENTS π¦
xprtβ therpc_xprtstruct that's holding all the statistics π. that's where the numbers live.seqβ the output file. that's where the stats get written to, iykyk βοΈ
π SEE ALSO π
so this function lives in the kernel file ./net/sunrpc/xprtsock.c β that's the mothership π β and here's the whole friend group, literally every single one of them, in order, no skipping, periodt:
xs_nospace(9)xs_local_send_request(9)xs_udp_send_request(9)xs_tcp_send_request(9)xs_error_report(9)xs_close(9)xs_destroy(9)xs_udp_data_read_skb(9)xs_data_ready(9)xs_local_state_change(9)xs_tcp_state_change(9)xs_udp_write_space(9)xs_tcp_write_space(9)xs_udp_set_buffer_size(9)xs_udp_timer(9)xs_set_port(9)xs_local_setup_socket(9)xs_enable_swap(9)xs_disable_swap(9)xs_tcp_shutdown(9)xs_tcp_setup_socket(9)xs_tls_handshake_done(9)xs_tcp_tls_setup_socket(9)xs_connect(9)xs_udp_print_stats(9)xs_tcp_print_stats(9)bc_send_request(9)xs_setup_local(9)xs_setup_udp(9)xs_setup_tcp(9)xs_setup_tcp_tls(9)xs_setup_bc_tcp(9)init_socket_xprt(9)cleanup_socket_xprt(9)
thirty-four of them. thirty-four!! π the friend group is huge and they're all iconic in their own way π₯
lowkey important note π the manpage literally doesn't give us a description section beyond the NAME line, so don't go expecting lore that isn't there. she prints stats. that's the plot. π
and that's the whole page, bestie!! π this one came from the ./net/sunrpc source, version line says October 2026, and the page itself is xs_local_print_stats(9) β go off, you now know everything this manpage knows π«Άβ¨
π¦ 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