Subject: Re: Add a MAP_ALIGNED flag for mmap(2).
To: Jason R Thorpe <email@example.com>
From: Matt Thomas <firstname.lastname@example.org>
Date: 03/02/2003 10:33:07
At 10:29 AM 3/2/2003, Jason R Thorpe wrote:
>On Sun, Mar 02, 2003 at 01:13:28AM -0800, Matt Thomas wrote:
> > Taking Andrew Brown's idea, I stole the top 8 bit of the flags argument
> > to mmap(2) to inside a log2 value of alignment desired. The attach
> > patch implements the proposal and (after a few bugs in uvm) works fine.
>I don't really like the flags thing .. I'd say either your first proposal,
>or a new mmap call that takes an additional alignment argument.
I actually like the flags method. It's much simplier than having a second
syscall. It also means that uvm_mmap doesn't need to take another argument
and the code that calls it doesn't have to change.
Matt Thomas Internet: email@example.com
3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt/
Cupertino, CA Disclaimer: I avow all knowledge of this message