tsk_advance_rx_queue(9)
π tsk_advance_rx_queue β a little kernel moment, explained
okay so bestie, we're in the Kernel API Manual today (yes, the kernel kernel, we're fancy now π) and the star of the show is tsk_advance_rx_queue(9). she's small, she's specific, she does exactly one thing. let's get into it β¨
β¨ NAME β¨
tsk_advance_rx_queue β literally just discard first buffer in socket receive queue ποΈπ
that's it. that's her whole job. no cap.
π SYNOPSIS π
void tsk_advance_rx_queue (struct sock *sk );
no return value, she doesn't return things, she does things π
(well, void things)
π¦ ARGUMENTS π¦
skβ network socket π»β¨ (yes, the struct sock one, the actual socket, that one)
πΈ DESCRIPTION πΈ
so basically: Caller must hold socket lock ππ€
like, that's not optional, that's not a suggestion, that's the vibe check. you, the caller, you need to be holding that socket lock. not me. not the intern. you. periodt.
β οΈ fr fr read this part twice: caller must hold socket lock. that's the whole description, she's not wordy about it, she just needs you to be locked and correct π«Ά
π SEE ALSO π
bestie this list is long and honestly it ate π₯ here's the whole friend group, all of them, every single one, no skipping:
- Kernel file
./net/tipc/socket.cstruct tipc_sock(9) tsk_rej_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)
like I said. the whole group chat. ππ
anyway that's the page, ily, go hold that socket lock π«Άβ¨
this has been ./net/tipc business, October 2026 edition β mwah, bye bestie ππ¦π
π¦ 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