xs_disable_swap(9)
π xs_disable_swap(9) β from the Kernel API Manual β¨
okay bestie, gather round, because we're talking about a little function from the Kernel API Manual and honestly it's giving "quiet but essential" energy π
πΈ NAME πΈ
xs_disable_swap β the one where you untag this transport as being used for swap π«
β¨ SYNOPSIS β¨
void xs_disable_swap (struct rpc_xprt *xprt );
(yes, that's the whole thing β a void, no return value, no drama, no notes π )
π¦ ARGUMENTS π¦
xprtβ the transport to tag, bestie. that's the one we're working with π«Ά
π₯ DESCRIPTION π₯
so here's the vibe: you're dropping a "swapper" reference to this xprt on behalf of the rpc_clnt. that's the whole job. lowkey simple, highkey important β¨
and then β the main character moment β if the swapper refcount goes all the way to 0, you untag the socket as a memalloc socket. that's it. that's the function. clean, iconic, no cap π
ngl this is the mirror twin of xs_enable_swap(9) β one tags, one untags. balance. harmony. the way that it should be π
π§ SEE ALSO π§
everything in the ./net/sunrpc/xprtsock.c cinematic universe, fr fr π
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_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)
like, all 34 of them, bestie β I counted, and no I'm not okay about it ππ
and that's the page!! π sending u off with so much love from ./net/sunrpc, dated October 2026 β go forth and untag those transports, you absolute icon πβ¨π
π¦ 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