Subject: Re: Add a MAP_ALIGNED flag for mmap(2).
To: Matt Thomas <matt@3am-software.com>
From: Frank van der Linden <fvdl@wasabisystems.com>
List: tech-kern
Date: 03/02/2003 14:20:26
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.

Somehow that just seems wrong. I'd say either to MAP_ALIGNED, or
go for a new mmap system call that allows you to specify more
things (but should be used with care).

- Frank