[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /dev/recycle
Christoph Rohland wrote:
> 1) /dev/{zero,recycle} shared mappings do only work between childs of
> the same parent and the parent. Also they do not survive an exec.
Use file handle passing -- another process can then share the mapping.
This is what shared anonymous mapping means, and it was added to the
kernel recently just after posix shm (because posix shm made it easy to
implement).
> 2) You cannot unmap and remap the same area.
You can if someone else holds it open.
Anyway, you can use MAP_RECYCLE when you're mapping posix shm.
That could be made to work :-)
-- Jamie
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/