lkml.org 
[lkml]   [2010]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Subjecthow the mmap() work for scatter_sg memory?
    From
    Date
    hi all,

    i see the drm kernel source code, for SCATTER MEMORY, it use
    vmalloc_32() to alloce some pages, and put them into sglist table in
    drm_scatter.c. and in drm_mmap_locked(), why it not call
    remap_vmalloc_range() to remap the pages to vm_area for mmap? how it
    remap pages(that memory using vmalloc_32() to alloc) to vm_area?
    for consistany memory, it often call remap_pfn_range() for remap.
    so i am puzzle how the mmap() is work for sg? would someone give it more
    details? Thanks.

    Best
    Figo



    \
     
     \ /
      Last update: 2010-03-21 02:35    [W:4.232 / U:0.540 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site