tipc_shutdown(9)
β¨ NAME β¨
tipc_shutdown β shutdown socket connection π
okay so real quick bestie, before we even get into it: this is from the Kernel API Manual, section 9, and it's all about that one little function that ends a TIPC connection and clears the decks. stay with me, it's short and it slays π«Ά
πΈ SYNOPSIS πΈ
int tipc_shutdown (struct socket *sock , int how );
like, that's the whole signature. two args, one int coming back at you. no cap, that's it π
π¦ ARGUMENTS π¦
sockβ the socket structure. your main character. this is the socket you're shutting down β¨howβ the direction to close, and heads up: it must beSHUT_RDWR. not a suggestion, not a vibe, it just has to be that. π
π DESCRIPTION π
so what does it actually do? two things, in order:
- It terminates the connection (if necessary β key phrase,
if necessary, iykyk). - Then it purges the socket's receive queue.
that's the entire personality. connection ended, receive queue yeeted, done. π
not me emphasizing that "if necessary" β but fr fr, the connection termination is conditional, the receive-queue purge is just what happens. don't @ me, that's literally the manpage.
π RETURN π
0on success πerrnootherwise π
like, it's giving classic kernel return convention and honestly? iconic.
π§ SEE ALSO π§
the whole friend group, no one left out. also: Kernel file ./net/tipc/socket.c β that's where the source lives, go say hi π
struct 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_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_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)
<aqua>okay that's the whole page, bestie, you ate that π«Ά this came out of the ./net/tipc corner of the kernel tree, dated October 2026, and it lives in section 9 of the Kernel API Manual β periodt. π
β¨</aqua>
π¦ 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