skb_copy_datagram_iter(9)
π« skb_copy_datagram_iter β a Kernel API Manual moment π«
okay so bestie, welcome to the Kernel API Manual, and today's main character is skb_copy_datagram_iter β¨ no cap, this one's a whole vibe.
πΈ NAME πΈ
skb_copy_datagram_iter β literally just copies a datagram into an iovec iterator. that's it. that's the whole job. π
β¨ SYNOPSIS β¨
int skb_copy_datagram_iter (const struct sk_buff *skb , int offset ,
struct iov_iter *to , int len );
like, look at her. she's giving function signature realness π
π ARGUMENTS π
skbβ the buffer you're copying from, bestie. this is the source of truth, the main character, the one with the data πoffsetβ where in the buffer to start copying from. not from the top, from here. got it? π«Άtoβ the iovec iterator you're copying into. this is the destination, the receiving end, the "where it's all going" π¦lenβ how much data to copy from the buffer into the iovec. the amount. the quantity. the vibe check number π₯
π SEE ALSO π
okay so there's a whole friend group here, and they all live in the Kernel file ./net/core/datagram.c β iconic address ngl π
__skb_try_recv_datagram(9)skb_kill_datagram(9)skb_copy_and_crc32c_datagram_iter(9)skb_copy_datagram_from_iter(9)zerocopy_sg_from_iter(9)skb_copy_and_csum_datagram(9)skb_copy_and_csum_datagram_msg(9)datagram_poll_queue(9)datagram_poll(9)
like, go read them too. they're all slaying in their own way π
ngl this whole page lives in./net/coreand it's dated October 2026 β so yeah, sourced from./net/core, timestamped October 2026, and she ate. periodt. ππ§ββοΈπ
π¦ 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