delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/06/10/14:59:47

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Message-ID: <006f01c210b1$1566f540$6132bc3e@BABEL>
From: "Conrad Scott" <Conrad DOT Scott AT dsl DOT pipex DOT com>
To: <cygwin-developers AT cygwin DOT com>
References: <072501c20fb8$8d16dc80$6132bc3e AT BABEL> <20020609163607 DOT GD26171 AT redhat DOT com> <3D040C6C DOT 4030508 AT ece DOT gatech DOT edu> <20020610022747 DOT GA13694 AT redhat DOT com>
Subject: Re: shm status
Date: Mon, 10 Jun 2002 20:00:26 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

"Christopher Faylor" <cgf AT redhat DOT com> wrote:
> I can't think of any reason not to take a look at the linux version of
> ipcs and see how it makes things happen, either.  FWIW, when I do an
> strace (on linux) on ipcs -a, it seems to just be doing a bunch of
> shmctl's.  I don't think a /proc interface is really needed.

My previous post about ipcs/ipcrm on Linux was both unclear and inaccurate,
i.e. it was bollocks (in part).

The Linux shmctl(2) (et al) i/faces have been expanded w/ extra options just
for ipcs(8). To quote the manual:

> The IPC_INFO, SHM_STAT and SHM_INFO control calls are used
> by the ipcs(8) program to provide information on allocated resources.
> In the future, these may be modified as needed or moved to a proc file
> system interface.

The information ipcs(8) requires *is* now available via the /proc filesystem
in Linux (AFAICT) since it is available via the sysctl(2) i'face and that
i'face is mirrored in the /proc/kern/* files. But the current version of
ipcs(8) on Linux (util-linux-2.11r) still uses the `private' shmctl(2)
i'faces. These are only required to get the list of currently active shmids
(et al); ipcs(8) then runs down this list calling shmctl(2) (et al) on each
one.

So: my current suggestion (for the moment) is to follow that route instead,
i.e. expand the shmctl(2) i'face as required (rather than expanding the
cygwin_internal() i'face).

I hope that's as clear as anyone needs this time, and maybe even accurate
:-)

// Conrad



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019