From owner-freebsd-hackers Sun Jun 18 23:28:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.theinternet.com.au (zeus.theinternet.com.au [203.34.176.2]) by hub.freebsd.org (Postfix) with ESMTP id 382E737BC19 for ; Sun, 18 Jun 2000 23:28:39 -0700 (PDT) (envelope-from akm@mail.theinternet.com.au) Received: (from akm@localhost) by mail.theinternet.com.au (8.9.3/8.9.3) id QAA72517; Mon, 19 Jun 2000 16:33:38 +1000 (EST) (envelope-from akm) From: Andrew Kenneth Milton Message-Id: <200006190633.QAA72517@mail.theinternet.com.au> Subject: Re: Sharing memory between processes. In-Reply-To: <007301bfd9b4$8018c1b0$b2a612d8@hayden> from Shawn Workman at "Jun 18, 2000 11:06:24 pm" To: Shawn Workman Date: Mon, 19 Jun 2000 16:33:38 +1000 (EST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG +----[ Shawn Workman ]--------------------------------------------- | | Hello, | I am coming up against a road block in porting an application from | a win32 platform to FreeBSD. The problem I am having is due to the | fact that FreeBSD protects it's memory more that NT for example. | | Is there a way to give a client app access to another apps memory? | the way it is done in the win32 app is to basically have the client | check for the existance of the server if it exists it grabs a pointer | to it's memory and therefore gains access to all the functions that | the server has in memory as well as data structures. | | Is there anyway to do this using FreeBSD 4.0 Stable? | You could ask the server for it, via e.g. RPC calls, or simple sockets. You could mmap it to/from a file and load up the current state from the file if it exists (or share FDs if the server forks the client). | I have used the shm* functions and from what I see I am limited to | the number of shared memory pointers I can have. Do you want to share what the server has in a read-only fashion, or you want all processes to get their own copy, or you want read-write to all processes? | I would really appreciate any help that could be provided here. | I have been looking at the possibility of an lkm but hear that this | can cause the system to become unstable.. Development might be fun, but, once its done it should be fine. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message