Re: [PATCH, v3] shmat: introduce flag SHM_MAP_NOT_FIXED

From: Alan Cox
Date: Tue Oct 07 2008 - 12:56:23 EST


On Tue, 7 Oct 2008 19:15:17 +0300
"Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/