lkml.org 
[lkml]   [2005]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Will __pa(vmalloc()) ever work?
    Christoph Hellwig wrote:

    > It will return the correct physical address for the start of the buffer.
    > But given that vmalloc is a non-contingous allocator that's pretty useless.

    So as long as the vmalloc'd memory fits inside one page, __pa() will always give the
    correct address? If so, then can't I just call __pa() for every page in the buffer and
    get a list of physical addresses? If I can do that, then how the memory be virtually
    contiguous but not physicall contiguous?

    > As are physical addresses for anything but low-level architecture code.

    I don't understand what that means.

    --
    Timur Tabi
    Staff Software Engineer
    timur.tabi@ammasso.com

    One thing a Southern boy will never say is,
    "I don't think duct tape will fix it."
    -- Ed Smylie, NASA engineer for Apollo 13
    -
    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-05-27 21:59    [W:6.347 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site