[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /dev/recycle



Jamie Lokier <lk@tantalophile.demon.co.uk> writes:

> 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).

That's not how /dev/zero works. Check the implementation. AFAIK it
also does not work this way on other platforms.
 
> > 2) You cannot unmap and remap the same area.
> 
> You can if someone else holds it open.

See above.

Greetings
		Christoph
--
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/