llc_sap_remove_socket(9)
π llc_sap_remove_socket(9) β a Kernel API Manual moment
okay so bestie, welcome to the <pink>Kernel API Manual</pink> page for llc_sap_remove_socket(9) β yes the whole (9) is part of the name, that's the section number, we love a numbered section, it's giving very organized of the kernel fr fr π
β¨ NAME β¨
llc_sap_remove_socket β removes a socket from SAP. that's it. that's the whole job. she's a remover. an icon. π
β¨ SYNOPSIS β¨
void llc_sap_remove_socket (struct llc_sap *sap , struct sock *sk );
okay so note the void β she gives you nothing back, no return value, no little treat, just vibes and a side effect. π¦
β¨ ARGUMENTS β¨
sapβ SAP. yes the manual literally just says "SAP" and honestly? valid. it's thestruct llc_sap *, the Service Access Point, the whole point of the operation. πskβ socket. again, extremely concise of them. it's thestruct sock *, the socket we're plucking out. π«Ά
β¨ DESCRIPTION β¨
so here's the tea π β this function removes a connection from the hash tables of a SAP, but ONLY if the connection was in this list. conditional queen. she's not out here removing things that aren't there, she's checking first. main character energy with a guard clause. π
literally that's the function. hash table cleanup. no cap.
β¨ SEE ALSO β¨
bestie the friend group is HUGE, buckle up π β all of these live in the kernel file ./net/llc/llc_conn.c:
llc_conn_state_process(9)llc_conn_rtn_pdu(9)llc_conn_resend_i_pdu_as_cmd(9)llc_conn_resend_i_pdu_as_rsp(9)llc_conn_remove_acked_pdus(9)llc_conn_send_pdus(9)llc_conn_service(9)llc_qualify_conn_ev(9)llc_exec_conn_trans_actions(9)__llc_lookup_established(9)llc_lookup_listener(9)llc_data_accept_state(9)llc_find_next_offset(9)llc_build_offset_table(9)llc_find_offset(9)llc_sap_add_socket(9)β the inverse of our girl, the adder to her remover, iconic pairing nglllc_conn_rcv(9)llc_backlog_rcv(9)llc_sk_init(9)llc_sk_alloc(9)llc_sk_free(9)llc_sk_reset(9)
iykyk π
π§ a lil reminder:llc_sap_remove_socketreturnsvoid, so don't go checking an exit status that does not exist. there is no return value to slay with. periodt. π
mwah π this whole page came to you from source ./net/llc, dated October 2026, and it's the llc_sap_remove_socket(9) page we've been besties about this entire time. bye babe, go clean up your hash tables responsibly πβ
π¦ 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