tipc_poll(9)
πΈ tipc_poll β read and possibly block on pollmask πΈ
okay so real talk, this is tipc_poll(9) from the Kernel API Manual, and it's genuinely iconic β let's get into it π
β¨ SYNOPSIS β¨
__poll_t tipc_poll (struct file *file , struct socket *sock , poll_table *wait );
π«Ά ARGUMENTS π«Ά
fileβ the file structure that's besties with the socket, like they're literally linkedsockβ the socket we're calculating the poll bits for, main character energy frwaitβ???β¦ yeah bestie the docs literally just say that π no cap, that's all we get
β RETURN β
the pollmask value, that's it, that's the tea π
π DESCRIPTION π
COMMENTARY: so the vibe here is that the usual socket locking mechanisms are lowkey NOT useful in this spot, because the pollmask info is potentially out-of-date like the moment this routine exits π TCP and the other protocols seem to rely on higher-level poll routines to handle any preventable race conditions, so TIPC is gonna do the same thing β¦ periodt, we're matching their energy β¨
IMPORTANT: the fact that a read or write operation is indicated does NOT imply that the operation will succeed β it merely means it should be performed and will not block π like pls don't read too much into it, it's giving "hint, not a promise"
π SEE ALSO π
grab a snack bestie, this list is long and we're listing every single one, no skipping π
- Kernel file
./net/tipc/socket.cstruct tipc_sock(9) tsk_advance_rx_queue(9)tsk_rej_rx_queue(9)tipc_sk_create(9)tipc_release(9)__tipc_bind(9)tipc_getname(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)
and that's the whole page, bestie, we ate and left no crumbs π so this lil gem comes from ./net/tipc, dated October 2026, and it's filed under tipc_poll(9) β ily, go read your kernel source now π§ββοΈπ
π¦ 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