llc_sap_next_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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:


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