skb_splice_from_iter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 skb_splice_from_iter(9) 🌸

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil kernel helper and she's lowkey iconic β€” let's get into it πŸ’…


πŸ’– NAME πŸ’–

skb_splice_from_iter β€” splice (or copy) pages to skbuff 🫢


✨ SYNOPSIS ✨

ssize_t skb_splice_from_iter (struct sk_buff *skb , struct iov_iter
*iter , ssize_t maxsize );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer you're adding pages to 🧚
  • iter β€” the iterator that represents the pages being added πŸ‘‘
  • maxsize β€” the maximum amount of pages that can be added ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is the common helper function for supporting MSG_SPLICE_PAGES, periodt πŸ’… she extracts pages from an iterator and adds them to the socket buffer if possible β€” and if that's not possible (like, say, when they're slab pages πŸ™ˆ), she copies them to fragments instead πŸ”₯

Returns the amount of data spliced/copied, or -EMSGSIZE if there's not enough space in the buffer to transfer anything 😭


🌈 SEE ALSO 🌈

Kernel file ./net/core/skbuff.c


that's the whole vibe check, bestie β€” this page came from ./net/core, dated October 2026, and she's filed under skb_splice_from_iter(9) πŸ“ go forth and splice responsibly, iykyk πŸ’œβœ¨

πŸ“¦ where this page comes from