Messages in this thread | | | Date | Fri, 21 Apr 2006 20:41:38 +1000 | From | Nick Piggin <> | Subject | Re: [patch - repost] do_no_pfn handler |
| |
Jes Sorensen wrote:
> --- linux-2.6.orig/include/linux/mm.h > +++ linux-2.6/include/linux/mm.h > @@ -199,6 +199,7 @@ > void (*open)(struct vm_area_struct * area); > void (*close)(struct vm_area_struct * area); > struct page * (*nopage)(struct vm_area_struct * area, unsigned long address, int *type); > + long (*nopfn)(struct vm_area_struct * area, unsigned long address);
Minor nit: make this unsigned long?
> int (*populate)(struct vm_area_struct * area, unsigned long address, unsigned long len, pgprot_t prot, unsigned long pgoff, int nonblock); > #ifdef CONFIG_NUMA > int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new); > @@ -612,6 +613,12 @@ > #define NOPAGE_OOM ((struct page *) (-1)) > > /* > + * Error return values for the *_nopfn functions > + */ > +#define NOPFN_SIGBUS ((unsigned long) -1) > +#define NOPFN_OOM ((unsigned long) -2)
-- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |