help-hurd
[Top][All Lists]
Advanced

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

Re: shared OOL-memory


From: Neal H Walfield
Subject: Re: shared OOL-memory
Date: Thu, 7 Jun 2001 15:37:16 -0500
User-agent: Mutt/1.3.18i

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.

Attachment: pgphJEPuQGXKJ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]