zerocopy_sg_from_iter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to zerocopy_sg_from_iter(9) β€” the kernel API manual page for zerocopy_sg_from_iter, and its whole thing is: Build a zerocopy datagram from an iov_iter. πŸ’…βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

int zerocopy_sg_from_iter (struct sk_buff *skb , struct iov_iter *from
);

🫢 ARGUMENTS 🫢

  • skb β€” buffer to copy 🫢
  • from β€” the source to copy from 🌸

πŸ’… DESCRIPTION πŸ’…

okay so the function will first copy up to headlen, and then pin the userspace pages and build frags through them. no cap, that's the sequence. 🧚

It returns 0, -EFAULT or -EMSGSIZE. periodt. πŸ’–


🌈 SEE ALSO 🌈

The kernel file mentioned is ./net/core/datagram.c, and the SEE ALSO crew is:


Source/version vibe: ./net/core πŸ’œ dated October 2026 πŸŽ€ β€” zerocopy_sg_from_iter(9) out, byeee! πŸ¦‹

πŸ“¦ where this page comes from