Messages in this thread | | | Date | Tue, 7 Oct 2008 17:54:12 +0100 | From | Alan Cox <> | Subject | Re: [PATCH, v3] shmat: introduce flag SHM_MAP_NOT_FIXED |
| |
On Tue, 7 Oct 2008 19:15:17 +0300 "Kirill A. Shutemov" <kirill@shutemov.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
| |