public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mmap-ing __get_free_pages(), order > 0
@ 2001-11-21  5:02 Douglas Gilbert
  0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2001-11-21  5:02 UTC (permalink / raw)
  To: linux-kernel

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


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

only message in thread, other threads:[~2001-11-21  5:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-21  5:02 mmap-ing __get_free_pages(), order > 0 Douglas Gilbert

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