All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Jorge Ramirez Ortiz, HCL Europe" <Jorge.Ramirez-Ortiz@hcl.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] shared memory segments
Date: Mon, 09 Jul 2012 14:38:50 +0200	[thread overview]
Message-ID: <4FFAD0DA.10306@xenomai.org> (raw)
In-Reply-To: <4F534D1A615F544D95E57BFD8460658302ED62BD@GEO-HCLT-UKEVS1.GEO.CORP.HCL.IN>

On 07/09/2012 12:26 PM, Jorge Ramirez Ortiz, HCL Europe wrote:
> Hi all, I am doing a port of a  shared library; in this library , a
> shared memory segment is being mapped (now using the Xenomai POSIX
> skin.) Some semaphores and data are placed on that shared segment.
> 
> Is there a way to mark the shared memory segment for deletion
> (unlink) after the last process detaches it (basically what
> shmctl(shmid, IPC_RMID, &shmInfo) does) cheers Jorge

No, but you can "shm_unlink" it when the last process has attached, this
will make it inaccessible to new processes, but still usable by
processes already attached. And the shared memory segment will be
destroyed when the last process detaches.

-- 
					    Gilles.


  reply	other threads:[~2012-07-09 12:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 10:26 [Xenomai] shared memory segments Jorge Ramirez Ortiz,  HCL Europe
2012-07-09 12:38 ` Gilles Chanteperdrix [this message]
2012-07-09 17:46 ` Gilles Chanteperdrix
2012-07-09 17:55   ` Jorge Ramirez Ortiz,  HCL Europe
2012-07-09 18:02     ` Gilles Chanteperdrix
2012-07-09 18:19       ` Jorge Ramirez Ortiz,  HCL Europe
2012-07-09 18:29         ` Gilles Chanteperdrix

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=4FFAD0DA.10306@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Jorge.Ramirez-Ortiz@hcl.com \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.