tsk_rej_rx_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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