[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081007175412.0d88da30@lxorguk.ukuu.org.uk>
Date: Tue, 7 Oct 2008 17:54:12 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: "Kirill A. Shutemov" <kirill@...temov.name>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
"Kirill A. Shutemov" <kirill@...temov.name>,
Andi Kleen <andi@...stfloor.org>,
Ingo Molnar <mingo@...hat.com>,
Arjan van de Ven <arjan@...radead.org>,
Hugh Dickins <hugh@...itas.com>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
Ulrich Drepper <drepper@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH, v3] shmat: introduce flag SHM_MAP_NOT_FIXED
On Tue, 7 Oct 2008 19:15:17 +0300
"Kirill A. Shutemov" <kirill@...temov.name> wrote:
> If SHM_MAP_NOT_FIXED specified and shmaddr is not NULL, then the kernel takes
> shmaddr as a hint about where to place the mapping. The address of the mapping
> is returned as the result of the call.
>
> It's similar to mmap() without MAP_FIXED.
NAK
This is a pointless API extension tacked onto a historic interface that
isn't well designed.
Use shm_open, and mmap and you get the functionality required using
modern posix interfaces with *NO* Linux extensions involved.
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists