Re: [PATCH] Inconsistent mmap()/mremap() flags

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thayne Harbaugh <thayne@...>
Cc: Andi Kleen <andi@...>, <linux-kernel@...>, <linux-mm@...>, <discuss@...>
Date: Tuesday, October 2, 2007 - 8:19 am

On Tue, 2 Oct 2007, Thayne Harbaugh wrote:

I think you can do it already, without us complicating mremap further
with such a start search hint.

First call mmap with a low hint address, the new size you'll be wanting
from the mremap, PROT_NONE, MAP_ANONYMOUS, -1, 0.  Then call mremap with
old address, old size, new size, MREMAP_MAYMOVE|MREMAP_FIXED, and new
address as returned by the preparatory mmap.

Hugh
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Inconsistent mmap()/mremap() flags, Thayne Harbaugh, (Fri Sep 28, 1:46 am)
Re: [PATCH] Inconsistent mmap()/mremap() flags, Andi Kleen, (Mon Oct 1, 7:13 am)
Re: [PATCH] Inconsistent mmap()/mremap() flags, Thayne Harbaugh, (Mon Oct 1, 10:57 pm)
Re: [PATCH] Inconsistent mmap()/mremap() flags, Andi Kleen, (Tue Oct 2, 1:15 am)
Re: [PATCH] Inconsistent mmap()/mremap() flags, Thayne Harbaugh, (Tue Oct 2, 3:06 am)
Re: [PATCH] Inconsistent mmap()/mremap() flags, Hugh Dickins, (Tue Oct 2, 8:19 am)
Re: [discuss] [PATCH] Inconsistent mmap()/mremap() flags, Thayne Harbaugh, (Tue Oct 2, 11:21 am)