llc_conn_state_process(9)
π llc_conn_state_process(9) β like, the Kernel API Manual one, bestie
okay so welcome to the group chat, this is the llc_conn_state_process page from the Kernel API Manual and honestly? she's a baddie with a very specific job. let's get into it π
β¨ NAME β¨
llc_conn_state_process β sends an event to the connection state machine. that's it, that's the whole vibe. she delivers the message π¨
πΈ SYNOPSIS πΈ
int llc_conn_state_process (struct sock *sk , struct sk_buff *skb );
π¦ ARGUMENTS π¦
skβ the connection. your main character socket, the one whose state machine we're feeding π«Άskbβ the occurred event. yes literally, the thing that happened, hand-delivered as an skb β¨
π DESCRIPTION π
so what she does is: she sends an event to the connection state machine. that's the whole assignment and she ate, no crumbs π
after the event gets processed β meaning it executes its actions and changes state, both β the upper layer gets indicated or confirmed, but only if needed. not every time. only if needed. iykyk π
returns 0 for success, 1 for failure. simple. iconic. two outcomes π
β οΈ okay listen, this part is important β the socket lock has to be held before calling this function. like, do not skip this. hold the lock first, then call. periodt π
π₯ also: this function always consumes a reference to the skb. always. every single time. so don't be out here thinking you still own that reference afterwards, because you do not, bestie π
β SEE ALSO β
the whole friend group, in kernel file ./net/llc/llc_conn.c:
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)llc_sap_remove_socket(9)llc_conn_rcv(9)llc_backlog_rcv(9)llc_sk_init(9)llc_sk_alloc(9)llc_sk_free(9)llc_sk_reset(9)
and that's the page!! π§ source /net/llc, dated October 2026 (yes, the future, she's ahead of her time ππ), and it's all llc_conn_state_process(9) energy from top to bottom. mwah π go hold that lock, 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