Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 "Christopher Faylor" 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