Subject: Re: mapping shared memory at a fixed address
To: Rahul Kulkarni <>
From: Todd Vierling <>
List: netbsd-users
Date: 02/08/2005 16:55:59
On Tue, 8 Feb 2005, Rahul Kulkarni wrote:

> What are the other options here for me?

If you're forking, the easiest option is not to exec() -- make your child
code part of the same executable.  If you mmap a region with MAP_SHARED
(maybe you will no longer need MAP_FIXED?) and then fork() *without* exec(),
the mapping will be shared among the children automatically, and at the same
virtual address.

-- Todd Vierling <> <>