File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Opportunity and Caveats
15
15
16
16
Copying large buffers between user process and kernel can be
17
17
expensive. Linux supports various interfaces that eschew copying,
18
- such as sendpage and splice. The MSG_ZEROCOPY flag extends the
18
+ such as sendfile and splice. The MSG_ZEROCOPY flag extends the
19
19
underlying copy avoidance mechanism to common socket send calls.
20
20
21
21
Copy avoidance is not a free lunch. As implemented, with page pinning,
@@ -83,8 +83,8 @@ Pass the new flag.
83
83
ret = send(fd, buf, sizeof(buf), MSG_ZEROCOPY);
84
84
85
85
A zerocopy failure will return -1 with errno ENOBUFS. This happens if
86
- the socket option was not set, the socket exceeds its optmem limit or
87
- the user exceeds its ulimit on locked pages.
86
+ the socket exceeds its optmem limit or the user exceeds their ulimit on
87
+ locked pages.
88
88
89
89
90
90
Mixing copy avoidance and copying
You can’t perform that action at this time.
0 commit comments