⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module zero_copy

Module zero_copy 

Source
Expand description

Zero-Copy Networking

Eliminates memory copies in the network stack for maximum throughput.

§Zero-Copy Techniques

  1. DMA Buffers: Direct memory access from network card
  2. Scatter-Gather I/O: Compose packets from multiple buffers
  3. Page Remapping: Transfer ownership instead of copying data
  4. sendfile(): Kernel-to-kernel transfer bypassing user space
  5. TCP_CORK: Batch small writes into single packet
  6. Memory Mapping: mmap() network buffers to user space
  7. TcpZeroCopySend: Combined scatter-gather + TCP segmentation

Structs§

DmaBuffer
DMA-capable buffer
DmaBufferPool
DMA buffer pool for zero-copy operations
DmaPoolStats
ScatterGatherList
Scatter-gather list for zero-copy I/O
ScatterGatherSegment
SendFile
Kernel-to-kernel transfer (sendfile equivalent)
TcpCork
TCP Cork (batch small writes into single packet)
TcpZeroCopySend
TCP zero-copy send combining scatter-gather with TCP segmentation.
ZeroCopySend
Zero-copy send operation using scatter-gather DMA.
ZeroCopyStats
Statistics for zero-copy operations