From: "Rafael Sisto" <rafael.sisto@gmail.com>
To: "Linux kernel" <linux-kernel@vger.kernel.org>
Subject: shared memory
Date: Sun, 16 Dec 2007 16:51:39 -0300 [thread overview]
Message-ID: <ee3dc96c0712161151x7941e4e1y51a7631ada375c70@mail.gmail.com> (raw)
Hi, Im working on a project working on linux kernel 2.6.17
I have to share memory on user level... I have to build something like
a server process that "exports" a portion of his virtual memory, and
other client process may ask the kernel for that memory and use it (as
its own).
I managed to build a structure on the kernel. The server process calls
a system-call and tells the kernel which pointer and size to share. Im
saving that data (virtual memory pointer and size) and the pid in the
structure.
After that, the client process calls another system call to get the
shared memory. My idea is to create a new vma_struct in the client
process pointing to the server shared memory.. The problem is I can't
see how to make a vma_struct to point directly to the server's
memory...
Can anybody help me with this issue? Any comment or suggestion would
be gratefuly accepted!
greetings from Uruguay!
Rafael Sisto
next reply other threads:[~2007-12-16 19:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-16 19:51 Rafael Sisto [this message]
2007-12-16 19:57 ` Luciano Rocha
2007-12-16 20:01 ` Rafael Sisto
2007-12-16 22:30 ` Luciano Rocha
2007-12-16 23:52 ` Rafael Sisto
-- strict thread matches above, loose matches on Subject: below --
2005-03-10 20:39 Shared memory Bloch, Jack
2001-11-20 3:57 shared memory Lee Chin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ee3dc96c0712161151x7941e4e1y51a7631ada375c70@mail.gmail.com \
--to=rafael.sisto@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®