vmsplice
vmsplice is a system call in Linux that allows a user-space process to directly splice data from a memory buffer into a pipe or vice-versa, without copying the data. This is achieved by mapping the user-space buffer into the kernel's address space and then linking it to the pipe's internal buffer. This avoids the overhead of user-space to kernel-space copying, which can be significant for large data transfers.
The primary benefit of vmsplice is improved performance, particularly in scenarios involving frequent and large data
vmsplice takes three arguments: a file descriptor representing the pipe, a pointer to the user-space buffer,
However, vmsplice has some limitations. It is only available on Linux and requires specific kernel support.