lkml.org 
[lkml]   [1999]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: User mode Virt -> Phys
    Date
    > On Tue, Jan 12, 1999 at 12:54:45AM +0000, Alan Cox wrote:
    > > > The linux kernel is full of calls to virt_to_phys. This function seems
    > > > only to work in kernel mode. Is there a way to convert a physical address
    > > > to a virtual address in user mode (from a regular program)?
    > >
    > > No. Nor should there ever need to be.
    >
    > Yes, for user level I/O stuff doing PCI DMA. Not normal applications by
    > any means, and you'd better know what you're doing.
    >
    > I have code which implements this quite cleanly (as this sort of thing
    > goes), but I haven't released it yet and won't until I am ready.

    You still don't need to do that translation for user space. Have a look
    at Stephen Tweedie <sct@redhat.com>'s raw-io patches and DMA hooks in
    kernel space for handling this stuff

    Alan


    -
    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:49    [W:0.019 / U:33.128 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site