Re: zero-copy read() interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 18 August 2005 12:01:52 +0200, Folkert van Heusden wrote:
> 
> What about a zero-copy read-interface?
> An ioctl (or something) which enables the kernel to do dma directly to
> the userspace. Of course this should be limited to the root-user or a
> user with special capabilities (rights) since if a drive screws up, data
> from a different sector (or so) might end up in the proces' memory. Of
> course copying a sector from kernel- to userspace can be done pretty
> fast but i.m.h.o. all possible speedimprovements should be made unless
> unclean.

Just use mmap().  Unlike your proposal, it cooperates with the page
cache.

Jörn

-- 
Don't worry about people stealing your ideas. If your ideas are any good,
you'll have to ram them down people's throats.
-- Howard Aiken quoted by Ken Iverson quoted by Jim Horning quoted by
   Raph Levien, 1979
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux