public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Figo.zhang" <figo1802@gmail.com>
To: lkml <linux-kernel@vger.kernel.org>
Subject: how the mmap() work for scatter_sg memory?
Date: Sun, 21 Mar 2010 09:32:04 +0800	[thread overview]
Message-ID: <1269135124.2517.6.camel@myhost> (raw)

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


                 reply	other threads:[~2010-03-21  1:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269135124.2517.6.camel@myhost \
    --to=figo1802@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox