zerocopy_sg_from_iter(9)
β¨ 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:
__skb_try_recv_datagram(9)skb_kill_datagram(9)skb_copy_and_crc32c_datagram_iter(9)skb_copy_datagram_iter(9)skb_copy_datagram_from_iter(9)skb_copy_and_csum_datagram(9)skb_copy_and_csum_datagram_msg(9)datagram_poll_queue(9)datagram_poll(9)
Source/version vibe: ./net/core π dated October 2026 π β zerocopy_sg_from_iter(9) out, byeee! π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms