xs_setup_local(9)
π xs_setup_local β like, the AF_LOCAL setup era
okay so bestie, we're deep in the sunrpc kernel API manual rn β this is the xs_setup_local(9) page, part of the Kernel API Manual, and it's honestly short but iconic. Let me walk you through it π«Ά
β¨ NAME β¨
xs_setup_local β set up transport to use an AF_LOCAL socket πΈ
it's giving "make the socket local", no cap.
β¨ SYNOPSIS β¨
struct rpc_xprt * xs_setup_local (struct xprt_create *args );
like, that's the whole signature. she's a pointer-returning function, periodt π
β¨ ARGUMENTS β¨
argsβ the rpc transport creation arguments π literally the stuff you hand over so the transport knows how to be born.
β¨ DESCRIPTION β¨
so AF_LOCAL is a "tpi_cots_ord" transport β and the way that it's just like TCP?? yeah. that's the whole vibe. lowkey identical energy, different address family β¨π₯
β¨ SEE ALSO β¨
okay the friend group here is LARGE, so buckle up π¦ β these all live in the kernel file ./net/sunrpc/xprtsock.c:
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_local_print_stats(9)xs_udp_print_stats(9)xs_tcp_print_stats(9)bc_send_request(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)
all of them. every single one. I would never do my besties dirty by skipping a single reference π
ngl this page is short but she ate. go read xs_local_setup_socket(9) next if you're nosy π
and that's a wrap, bestie π this came out of ./net/sunrpc, dated October 2026, sitting all cute under the xs_setup_local(9) title β mwah, slay, 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