lkml.org 
[lkml]   [1999]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Mapping from user VA to kernel VA...
Date
Raj, Ashok wrote:
>
> Hello.
>
> I have a need to do the following.
>
> User process sends the his virtual address to kernel.
>
> Kernel locks memory down and now has the list of physical pages.
>
> What should i do so that i can get a kernel linear address, that maps to the
> same physical page?

Use kiovecs. If you're doing it in 2.2, you'll need Steven Tweedie's
rawio patch; it's already in 2.3. You'll also need to modify the patch
to separate probing the pages from locking them for I/O, if you aren't
going to immediately do I/O on them and then release them.

--
............................................................................
Peter Desnoyers
162 Pleasant St. (617) 661-1979 pjd@fred.cambridge.ma.us
Cambridge, Mass. 02139 (978) 461-0402 (work) pjd@giga-net.com

-
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:55    [W:1.008 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site