On Sat, Sep 13, 2014 at 01:39:05AM +0200, Samuel Thibault wrote: > So it seems we need what is not actually documented, i.e. a vm_map > with anywhere=1, but which takes into account the suggested address. > I'm fine with officially supporting that, we just need to fix the > documentation, and fix all places which weren't aware of this behavior > (there are very few). Do we agree on this?
Personally, I do prefer this approach, since that's how mmap is expected to behave (with the interesting addition that, if MAP_FIXED isn't set, but the hint is non-zero, the returned mapping must not start at address 0). -- Richard Braun