Re: sendfile() documentation

Felix von Leitner (leitner@math.fu-berlin.de)
Thu, 17 Dec 1998 21:17:22 +0100


Thus spake Todd Graham Lewis (tlewis@mindspring.net):
> > The reason to use sendfile would be to save the context switches, so I
> > don't want my select to return all the time, right?
> I don't know that sendfile is so much intended to save context switches
> as it is to obviate unnecessary copying from kernal space to user space
> and back down to the kernel again. Someone correct me if I'm wrong.

Well, if you wanted to save that copying, you could simply write from the
mmap()ed file and would not need sendfile, too. And I believe that
sendfile does just that, anyway ;)

Felix

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/