Expand description
DMA Buffer Pool for Zero-Copy Networking
Provides pre-allocated DMA-capable buffers for network packet transmission and reception, enabling zero-copy operation with minimal allocation overhead.
Buffers are allocated from physical frames below 4GB for 32-bit DMA
compatibility. Each buffer gets one 4KB frame; the usable portion is
DMA_BUFFER_SIZE (2048 bytes) to accommodate network MTU + headers.
Structs§
- DmaBuffer
- DMA Buffer
- DmaBuffer
Pool - DMA Buffer Pool
- DmaPool
Stats - DMA Pool Statistics
Constants§
- DMA_
BUFFER_ SIZE - Standard network buffer size (1500 MTU + headers + alignment)
- MAX_
BUFFERS - Maximum number of buffers in the pool
Functions§
- init_
network_ pool - Initialize the global network DMA pool
- with_
network_ pool - Execute a closure with the global network DMA pool (mutable access)