tsk_rej_rx_queue(9)
π
tsk_rej_rx_queue β a Kernel API Manual moment
okay so bestie, buckle up, we're in the Kernel API Manual today (yes, the (9) section, we're being fancy) and the page is literally called tsk_rej_rx_queue. iconic name, no notes. π
β¨ NAME β¨
tsk_rej_rx_queue β reject all the buffers in a socket receive queue. like, all of them. every single one. no survivors, periodt. π
π¦ SYNOPSIS π¦
void tsk_rej_rx_queue (struct sock *sk , int error );
that's it, that's the whole call. two args, zero drama (well, the drama is the rejecting, see below). β¨
πΈ ARGUMENTS πΈ
skβ the network socket we're doing this to. your main character, fr.errorβ the response error code. this is what gets handed back, so likeβ¦ pick it wisely, iykyk. π
π DESCRIPTION π
lowkey the most important line on this entire page:
Caller must hold socket lock. π like, not optional. not "if you feel like it". hold the lock, bestie, or don't come crying to me. π
that's genuinely it β that's the whole description. this function rejects all the buffers chilling in the socket receive queue, and the caller has to be holding the socket lock when it happens. short king of a manpage, but it ate. π
π₯ SEE ALSO π₯
okay this list is long and honestly kind of a flex, so here's the full squad, no cap, nobody left behind β starting with the kernel file it lives in, ./net/tipc/socket.c, and its struct bestie:
struct tipc_sock(9)tsk_advance_rx_queue(9)tipc_sk_create(9)tipc_release(9)__tipc_bind(9)tipc_getname(9)tipc_poll(9)tipc_sendmcast(9)tipc_send_group_msg(9)tipc_send_group_unicast(9)tipc_send_group_anycast(9)tipc_send_group_bcast(9)tipc_send_group_mcast(9)tipc_sk_mcast_rcv(9)tipc_sk_conn_proto_rcv(9)tipc_sendmsg(9)tipc_sendstream(9)tipc_send_packet(9)tipc_sk_set_orig_addr(9)tipc_sk_anc_data_recv(9)tipc_recvmsg(9)tipc_recvstream(9)tipc_write_space(9)tipc_data_ready(9)tipc_sk_filter_connect(9)rcvbuf_limit(9)tipc_sk_filter_rcv(9)tipc_sk_backlog_rcv(9)tipc_sk_enqueue(9)tipc_sk_rcv(9)tipc_connect(9)tipc_listen(9)tipc_accept(9)tipc_shutdown(9)tipc_setsockopt(9)tipc_getsockopt(9)tipc_socket_init(9)tipc_socket_stop(9)tipc_sk_filtering(9)tipc_sk_overlimit1(9)tipc_sk_overlimit2(9)tipc_sk_dump(9)
go read them all, bestie, I'll wait. π
and that's the whole vibe check, we're done here! page brought to you by ./net/tipc, dated October 2026 β mwah, love that for us, see you in the next (9) page π«Άπ
π¦ 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