llc_build_and_send_pkt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… llc_build_and_send_pkt(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is llc_build_and_send_pkt from the Kernel API Manual section 9, and it's giving "the upper layer finally hit send" energy ✨


✨ NAME ✨

llc_build_and_send_pkt β€” connection data sending for upper layers πŸ¦‹


🌸 SYNOPSIS 🌸

int llc_build_and_send_pkt (struct sock *sk , struct sk_buff *skb );

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the connection πŸ’œ
  • skb β€” the packet to send πŸ“¦

πŸ‘‘ DESCRIPTION πŸ‘‘

So the way this works: this function gets called when the upper layer wants to send data using connection oriented communication mode, iykyk πŸ”₯

While it's sending data, the connection gets locked, and received frames plus expired timers get queued β€” no cutting the line, they wait their turn 🧚

Return values, bestie, memorize these:

  • 0 β€” success, slay βœ…
  • -ECONNABORTED β€” when the connection already closed 😭
  • -EBUSY β€” when sending data is not permitted in this state, OR when LLC has send an I pdu with p bit set to 1 and is waiting for it's response πŸ’€
fr fr important: this function always consumes a reference to the skb β€” no cap, don't go freeing that thing yourself afterwards πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./net/llc/llc_if.c, plus these iconic siblings:


and that's the whole vibe check πŸ’– this page lives in ./net/llc, stamped October 2026 β€” go forth and send those packets, main character 🫢✨

πŸ“¦ where this page comes from