On Thu, Jun 07, 2001 at 09:25:32PM +0200, Johan Rydberg wrote:
> Neal H Walfield wrote:
> > 
> > > My client wants to share a block of memory with the server.  The
> > > client allocates the memory, and sends it to the server.  The problem
> > > is that the out-of-line memory will be treated as copy-on-write,
> > > right?   Is there some simple way of getting them to share the memory
> > > read-and-write?
> > 
> > Yes.  Allocate a memory object via default_pager_object_create and have
> > both the server and the client map it via vm_map.
> 
> Oh, ok.  How do I receive sendrights to the default pager?

  mach_port_t pager = MACH_PORT_NULL;
  vm_set_default_memory_manager (host, &pager);

where host is the host control port obtained via get_privileged_ports.

PGP signature

Reply via email to