Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932659AbWCQNvH (ORCPT ); Fri, 17 Mar 2006 08:51:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932690AbWCQNvH (ORCPT ); Fri, 17 Mar 2006 08:51:07 -0500 Received: from e34.co.us.ibm.com ([32.97.110.152]:53445 "EHLO e34.co.us.ibm.com") by vger.kernel.org with ESMTP id S932659AbWCQNvF (ORCPT ); Fri, 17 Mar 2006 08:51:05 -0500 Message-ID: <441ABEDD.4070003@de.ibm.com> Date: Fri, 17 Mar 2006 14:51:25 +0100 From: Carsten Otte Reply-To: carsteno@de.ibm.com Organization: IBM Deutschland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jes Sorensen CC: Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, Christoph Hellwig Subject: Re: [patch] mspec - special memory driver and do_no_pfn handler References: In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1284 Lines: 27 Jes Sorensen wrote: > Index: linux-2.6/include/linux/mm.h > =================================================================== > --- 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, int *type); > 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); If you use address as parameter to nopfn, it won't work with highmem on 32bit systems. Alternative would be to use (unsigned long) phys. page frame number. Your work in memory.c looks like the right thing to do. Afaics it will work for xip as well once I figure how to do COW. Cool stuff :-). Carsten - 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/