lkml.org 
[lkml]   [2001]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: File copy system call proposal
Date
Followup to:  <1007782956.355.2.camel@quinn.rcn.nmt.edu>
By author: Quinn Harris <quinn@nmt.edu>
In newsgroup: linux.dev.kernel
>
> All kernel copy:
> Commands like cp and install open the source and destination file using
> the open sys call. The data from the source is copied to the
> destination by repeatedly calling the read then write sys calls. This
> process involves copying the data in the file from kernel memory space
> to the user memory space and back again. Note that all this copying is
> done by the kernel upon calling read or write. I would expect if this
> can be moved completely into the kernel no memory copy operations would
> be performed by the processor by using hardware DMA.
>

mmap(source file);
write(target file, mmap region);

-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/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.130 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site