Re: Mapping from user VA to kernel VA...

Peter Desnoyers (pjd@fred001.dynip.com)
Wed, 24 Nov 1999 06:39:11 -0500 (EST)


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/