lkml.org 
[lkml]   [2001]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Allocating non-contigious memory
    Date
    From
    > What is the Right Way[tm] as of 2.4.6 to allocate 16Mb as 4K pages and
    > get the pci bus address for each page? Bonus points is they're
    > virtually contiguous, but that's not necessary. IIRC, the old
    > vmalloc-then-walk-the-pagetables trick is considered out-of-bounds
    > nowadays.

    If you want it virtually contiguous then copy the code from bttv that
    out-of-bounds or otherwise is now found in about 8 drivers in the kernel.

    If you don't need that then you can map user space and use kiovecs - which
    is nicer for many things

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