public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* how the mmap() work for scatter_sg memory?
@ 2010-03-21  1:32 Figo.zhang
  0 siblings, 0 replies; only message in thread
From: Figo.zhang @ 2010-03-21  1:32 UTC (permalink / raw)
  To: lkml

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-21  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-21  1:32 how the mmap() work for scatter_sg memory? Figo.zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox