From: Luciano Rocha <luciano@eurotux.com>
To: Rafael Sisto <rafael.sisto@gmail.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: shared memory
Date: Sun, 16 Dec 2007 22:30:14 +0000 [thread overview]
Message-ID: <20071216223014.GA13628@bit.office.eurotux.com> (raw)
In-Reply-To: <ee3dc96c0712161201y34a3e3e0t601ab4fa73d002c@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
On Sun, Dec 16, 2007 at 05:01:17PM -0300, Rafael Sisto wrote:
> Thank you for the quick answer, but It's a college project, and I must
> share user level memory. I also must build my own system calls...
> But I can look what is already done and make something similar. Do you
> think shmget would do? Does it share user level memory?
Yes. They both do, but the Posix one is based on a ramfs or tmpfs on
/dev/shm and shared mmaps. I think analyzing the SysV version will be
better for your needs.
shmget: create the memory region
shmat: attach the memory region to this process.
--
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-16 22:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-16 19:51 shared memory Rafael Sisto
2007-12-16 19:57 ` Luciano Rocha
2007-12-16 20:01 ` Rafael Sisto
2007-12-16 22:30 ` Luciano Rocha [this message]
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=20071216223014.GA13628@bit.office.eurotux.com \
--to=luciano@eurotux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael.sisto@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).