llc_sap_next_state(9)
π« llc_sap_next_state π«
Hey bestie! This page is from the Kernel API Manual, and it's literally all about llc_sap_next_state. It's the function that keeps the SAP state machine slaying. π«Ά
β¨ NAME β¨
llc_sap_next_state β finds transition, execs actions & change SAP state
π SYNOPSIS π
int llc_sap_next_state (struct llc_sap *sap , struct sk_buff *skb );
πΈ ARGUMENTS πΈ
sapβ pointer to SAP. It's giving "the SAP in question" and it's ready for its state to be changed.skbβ happened event. This is the event that just showed upβlike the plot twist in your favorite show.
π DESCRIPTION π
Okay so here's the tea, bestie: this function finds the transition that matches the happened event, then it executes the related actions, and finally changes the state of SAP. It's literally doing the most, and we love that for it. πββοΈ
It returns 0 on success and 1 for failure. So no cap, you can always tell if it slayed or if it flopped. π
π¦ SEE ALSO π¦
Check out these other iconic functions and files, iykyk:
- Kernel file
./net/llc/llc_sap.c(the source, periodt) llc_alloc_frame(9)llc_sap_rtn_pdu(9)llc_find_sap_trans(9)llc_exec_sap_trans_actions(9)llc_sap_state_process(9)llc_build_and_send_test_pkt(9)llc_build_and_send_xid_pkt(9)llc_sap_rcv(9)llc_lookup_dgram(9)llc_sap_mcast(9)
Catch u later, bestie <3 π
This page was served fresh from ./net/llc in October 2026 by the Kernel API Manual. Stay slaying! β¨
π¦ 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