summaryrefslogtreecommitdiffstats
path: root/sys/kern/syscalls.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1998-11-05 14:28:26 +0000
committerdg <dg@FreeBSD.org>1998-11-05 14:28:26 +0000
commitb178f74f12a0446656640ae873e0bc71057f5de3 (patch)
treed66b2ab9c599863a9679de94cdc9514d6a3dbd1d /sys/kern/syscalls.c
parent60b560b337fe2a6159e49741372219aa0353da03 (diff)
downloadFreeBSD-src-b178f74f12a0446656640ae873e0bc71057f5de3.zip
FreeBSD-src-b178f74f12a0446656640ae873e0bc71057f5de3.tar.gz
Implemented zero-copy TCP/IP extensions via sendfile(2) - send a
file to a stream socket. sendfile(2) is similar to implementations in HP-UX, Linux, and other systems, but the API is more extensive and addresses many of the complaints that the Apache Group and others have had with those other implementations. Thanks to Marc Slemko of the Apache Group for helping me work out the best API for this. Anyway, this has the "net" result of speeding up sends of files over TCP/IP sockets by about 10X (that is to say, uses 1/10th of the CPU cycles) when compared to a traditional read/write loop.
Diffstat (limited to 'sys/kern/syscalls.c')
-rw-r--r--sys/kern/syscalls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index 781cf4c..c5164a9 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -342,4 +342,5 @@ char *syscallnames[] = {
"sched_get_priority_min", /* 333 = sched_get_priority_min */
"sched_rr_get_interval", /* 334 = sched_rr_get_interval */
"utrace", /* 335 = utrace */
+ "sendfile", /* 336 = sendfile */
};
OpenPOWER on IntegriCloud