lkml.org 
[lkml]   [2002]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Calculating kernel logical address ..
    Date
    On Monday 09 September 2002 19:23, David S. Miller wrote:
    > From: "Richard B. Johnson" <root@chaos.analogic.com>
    > Date: Mon, 9 Sep 2002 13:29:42 -0400 (EDT)
    >
    > I think there is a virt_to_bus() macro and its inverse.
    >
    > Which is deprecate and not to be used by any new code.
    > Use Documentation/DMA-mapping.txt instead.
    >
    > If you meant virt_to_phys(), this does not work on arbitrary
    > kernel virtual addresses either only direct mapped ones
    > (ie. kmalloc() or get_free_page() data).

    In this case he starts with a kmalloc, then mmaps it somehow. Imran,
    exactly what code do you use to mmap the kmalloced memory?

    --
    Daniel
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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