All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: linux-kernel@vger.kernel.org
Subject: mmap-ing __get_free_pages(), order > 0
Date: Wed, 21 Nov 2001 00:02:30 -0500	[thread overview]
Message-ID: <3BFB3566.A74C7A14@torque.net> (raw)

I'm trying to mmap a scatter gather list to the user space.
[The scatter gather list has the same lifetime as a
file descriptor to a device.] Each element of the scatter 
gather list is obtained from __get_free_pages() 
[typically order == 3].

In LDD2, Rubini & Corbett limit their "scullp" driver
example to order 0. There is a bit of arm waving in
the text (page 392) about some manipulation of page
counts being required when the order is > 0.

Could someone please elaborate what the rules are
(for the "nopage" callback)?
[The DEBUG_LRU_PAGE() at line 206 of page_alloc.c 
disapproves of my attempts to date.]

Is there any driver out there that solves this
particular problem?

Doug Gilbert


                 reply	other threads:[~2001-11-21  5:05 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=3BFB3566.A74C7A14@torque.net \
    --to=dougg@torque.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.