llc_alloc_frame(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– llc_alloc_frame(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the llc_alloc_frame(9) page from the Kernel API Manual. this one is short and sweet, but it still ate. let's get into it 🫢

🌸 NAME 🌸

llc_alloc_frame β€” allocates sk_buff for frame ✨

✨ SYNOPSIS ✨

struct sk_buff * llc_alloc_frame (struct sock *sk , struct net_device
       *dev , u8 type , u32 data_size );

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” socket to allocate frame to 🧚
  • dev β€” network device this skb will be sent over 🌈
  • type β€” pdu type to allocate πŸ“
  • data_size β€” data size to allocate πŸ’œ

πŸ’… DESCRIPTION πŸ’…

so what does it do? it allocates an sk_buff for frame and initializes sk_buff fields. that's the main character behavior right there. πŸ‘‘

it returns the allocated skb or NULL when it's out of memory β€” no cap, that's the whole return story. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, if you wanna follow the lore, check the kernel file ./net/llc/llc_sap.c and this whole iconic friend group:


πŸ’… signed off by the ./net/llc source tree, October 2026 β€” periodt, bestie. 🫢✨

πŸ“¦ where this page comes from