skb_copy_an...atagram_iter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

skb_copy_and_crc32c_datagram_iter β€” the function formally known as skb_copy_an...atagram_iter(9) in the Kernel API Manual πŸ’– β€” copies a datagram over to an iovec iterator and updates a CRC32C value at the same time. Two jobs, one function, main character energy fr fr 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

int skb_copy_and_crc32c_datagram_iter (const struct sk_buff *skb , int
offset , struct iov_iter *to , int len , u32 *crcp );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer you're copying from, bestie. This is the source of truth, okay?
  • offset β€” where in the buffer you start copying from. Like, not from the top, from this far in πŸ‘€
  • to β€” the iovec iterator you're copying to. It's giving destination. It's giving target. It's giving "put it here please" 🫢
  • len β€” how much data gets copied out of the buffer and into the iovec. Exactly this much, no cap πŸ’…
  • crcp β€” pointer to the CRC32C value you're updating. Yes, it gets updated in place. Yes, that's the whole point 😌

⭐ RETURN ⭐

  • 0 on success β€” slay, we love a clean return πŸŽ‰
  • -EFAULT if there was a fault during the copy β€” not the vibe, something went wrong mid-copy 😭
Heads up, babe: those are the only two options listed. 0 or -EFAULT. That's it. Don't be out here inventing other return values, that's not the move 🚫

πŸ’œ SEE ALSO πŸ’œ

All of these are literally right there in ./net/core/datagram.c, so go read the whole squad, iykyk πŸ“šβœ¨


Friendly reminder that this whole little page lives under ./net/core and it's dated October 2026 β€” mark your calendars, bestie πŸ—“οΈπŸ’«

Okay that's the whole page!! Go copy some datagrams and update that CRC32C, you absolute icon πŸ‘‘πŸ’– This has been your girl, signing off from the Kernel API Manual, ./net/core, October 2026 edition πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from