xs_udp_send_request(9)
π xs_udp_send_request(9) β¨
okay bestie, so we're in the Kernel API Manual today and this one's about yeeting an RPC request into a UDP socket π
πΈ NAME πΈ
xs_udp_send_request β write an RPC request to a UDP socket β¨
π¦ SYNOPSIS π¦
int xs_udp_send_request (struct rpc_rqst *req );
π ARGUMENTS π
reqβ pointer to RPC request π«Ά (that's the thing you're sending, bestie, it's giving main character energy)
π DESCRIPTION π
So like, here's the vibe check on what you get back β the return values are lowkey the whole plot π
0β The request has been sent β¨ slay, it's out there living its lifeEAGAINβ The socket was blocked, please call again later to complete the request π not a fail fr fr, just a "hold on, come back in a sec"ENOTCONNβ Caller needs to invoke connect logic then call again π§ the connection isn't set up yet, so do that first and then re-run this- other β Some other error occurred, the request was not sent π nope, it didn't go out
not me stressing the EAGAIN one β it literally means "try again later", do NOT panic π
β SEE ALSO β
Kernel file ./net/sunrpc/xprtsock.c β and the whole friend group here:
xs_nospace(9)xs_local_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_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)
that's the whole page bestie, no cap, nothing skipped π and before you go β this lil masterpiece lives in ./net/sunrpc, dated October 2026, with the graceful title xs_udp_send_request(9). iykyk πππ¦
π¦ 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