lkml.org 
[lkml]   [1999]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: locking pages in memory, mapping memory
Date
From
> 1. I would like to map a buffer from user address space to kernel address
> space, so that a user application can write data to this buffer
> and the kernel than can read this data WITHOUT having to copy
> it from user to kernel space (and vice versa)


alan@lxorguk.ukuu.org.uk said:
> You want to map a buffer in kernel address space into user address
> space, same effect but its a whole lot easier, and they are implicitly
> locked

> The sound drivers do exactly this for one example.

I also do this for fast scanner interface boards that we do. Works real
well, and has the additional advantage that funky alignment problems
do not occur.

(After all, you do not want to copy the JPEG of a 300DPI 9"x12" grayscale
image using copy_to_user if you can at all avoid it. Especially if you
get 4 of them every second.)
--
Steve Williams "The woods are lovely, dark and deep.
steve@icarus.com But I have promises to keep,
steve@picturel.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."



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

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