Re: File copy system call proposal

H. Peter Anvin (hpa@zytor.com)
8 Dec 2001 16:19:26 -0800


Followup to: <E16Chyk-0000zH-00@starship.berlin>
By author: Daniel Phillips <phillips@bonn-fries.net>
In newsgroup: linux.dev.kernel
>
> There's some merit to this idea. As Peter pointed out, an in-kernel cp isn't
> needed: mmap+write does the job. The question is, how to avoid the
> copy_from_user and double caching of data?
>

One thing that one could do for an in-kernel copy is to extend
sendfile() to support any kind of file descriptor. That'd be a very
clean way to do it.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/