Re: [RFC] Advanced XIP File System
From: David Woodhouse
Date: Wed May 03 2006 - 11:52:48 EST
On Wed, 2006-05-03 at 08:45 -0700, Jared Hulbert wrote:
> > We only need to mark those pages as absent in the page tables if we ever
> > schedule to userspace while the flash is in a mode other than read mode.
> > Then handle the page fault by switching the flash back or waiting for
> > it.
>
> Where would we do this? In each MTD driver? A new generic aops function?
Probably a helper function with callbacks into the MTD driver. You ask
the MTD device driver to map a certain range of itself to userspace, and
it does so. Then it handles the page faults, etc.
--
dwmw2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/