Subject: Re: Add a MAP_ALIGNED flag for mmap(2).
To: Matt Thomas <>
From: Andrew Brown <>
List: tech-kern
Date: 03/03/2003 00:43:25
>> > > I also like listing the alignment in terms of bytes, not pages, since it
>> > > means userland code doesn't care what the internal page size is. Also it
>> > > might help emulation if future systems raise the page size (like say 
>> we go
>> > > from 4k to 8k or 8k to 16k as part of a CPU transition) - we don't 
>> have to
>> > > keep track of the implicit page size.
>> >
>> >Yah, I definitely think it should be in bytes.  I must admit that the log2
>> >use of the flags argument is a clever hack :-)
>>just so long as you don't even decide that you need to align something
>>to a seventeen page boundary...  :)
>But uvm doesn't allow that so...

sure it does.  i mean, i can't *request it* explicitly, but i can
arrange it.

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."