skb_pull_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– skb_pull_data(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this page is all about skb_pull_data(9), and it's giving "remove stuff from the front of the buffer" main character energy. no cap. 🫢


✨ NAME ✨

skb_pull_data β€” remove data from the start of a buffer returning its original position. literally that's the vibe check. πŸ’…


πŸ’… SYNOPSIS πŸ’…

void * skb_pull_data (struct sk_buff *skb , size_t len );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” buffer to use. this is the skb bestie we're working with. πŸ¦‹
  • len β€” amount of data to remove. yes, exactly that many. πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

This function removes data from the start of a buffer, returning the memory to the headroom. iconic behavior, honestly. ✨

A pointer to the original data in the buffer is returned after checking if there is enough data to pull. so it does the vibe check first β€” very responsible of it. πŸ’–

⚠️ bestie, plot twist: once the data has been pulled, future pushes will overwrite the old data. that's the tea. 😭

🌈 SEE ALSO 🌈

Kernel file: ./net/core/skbuff.c β€” that's the source file, iykyk. πŸ‘‘


πŸ’– mwah, that's the whole page β€” signed off from ./net/core, October 2026, source/date tea included. periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from