From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <437A6C2E.1020807@nortel.com> Date: Tue, 15 Nov 2005 17:15:58 -0600 From: "Christopher Friesen" MIME-Version: 1.0 To: Arnd Bergmann References: <437A5049.9090308@nortel.com> <200511152338.53238.arnd@arndb.de> In-Reply-To: <200511152338.53238.arnd@arndb.de> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc64-dev@ozlabs.org, linuxppc-embedded@ozlabs.org Subject: Re: modify the cache-inhibit and guard bits from userspace? List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Arnd Bergmann wrote: > I have seen an earlier patch that modifies madvise to do this, which seems > a little saner than mprotect, although they can probably both be implemented > in a similar way. Ah, that would make sense. It does fit the intent of the function a bit better. > Alternatively, you could write a new file system similar to hugetlbfs and set > the cache-inhibit bit in its mmap function. Also a possibility. I think the madvise method is a bit cleaner for the apps. Chris