Skip to main content

Module splice

Module splice 

Source
Expand description

L4 passthrough plumbing — zero user-space data copies (IO-04).

pump(from, to) moves bytes from → to through a kernel pipe with splice(2) + SPLICE_F_MOVE. Data never touches user space: the pipe buffer pages are remapped between sockets. Both engine backends call this on readability; the function is backend-agnostic.

Enums§

PumpResult
Result of one pump round.

Functions§

pump
Moves up to max bytes from -> to without user-space copies.