Analysis of Linux Kernel Source Code: How sendfile and splice Achieve Zero-Copy
Previously, we introduced several Linux zero-copy technologies, among which sendfile and splice are very similar. Both system calls allow data to be moved/copied directly in kernel space without passing through user space. In this article, we will analyze the kernel source code of these two system calls to see how they achieve zero-copy. 1. Analysis … Read more