Re: Utilities for listing/removing POSIX IPC objects

From: Michael Kerrisk (michael.kerrisk.at.gmx.net_at_nospam.com)
Date: 11/10/05


Date: Thu, 10 Nov 2005 09:15:13 +0100

On 9 Nov 2005 16:23:24 -0800, in comp.os.linux.development.system you
wrote:

>Hi,
>
>I hope this is the appropriate group to post this question. If I'm
>wrong, please accept my apologies and correct me.
>
>Are there standard utilities for listing/removing POSIX IPC objects,
>equivalent to ipcs/ipcrm for SysV IPC ?

Gidday Paulo,

No, unfortunately, there are not. On many Unix implementations
(including Linux), POSIX IPC objects are implemented in some sort of
virtual file system, and you can thus just use ls(1) and rm(1).
However, the precise location of these virtual file systems varies
across implementations. (SUSv3 does not help here: it doesn't specify
how to list/remove POSIX IPC objects from the command line, not
specify where they should be located.)

Cheers,

Michael

PS On Linux, POSIX shared memory and semaphore objects are typically
under /dev/shm. For message queues you need to mount the file system
using something like:

$ mkdir /dev/mqueue
$ mount -t mqueue none /dev/mqueue



Relevant Pages

  • Re: USB external drive question
    ... Mount: you must specify the file system ... Linux user since 01/01/2003 ...
    (uk.comp.os.linux)
  • Re: [SLE] Problems with CD Drive
    ... > Mount a data CD either auto or manually ... Do you specify the file system with the '-t' option to mount? ...
    (SuSE)
  • Re: Bug#507084: ability to set new mount defaults in fstab
    ... shall now use these defaults unless otherwise specified on that mount ... You can specify the options in /etc/fstab ... How is root supposed to figure out which options mount is currently ... because I was using the wrong mount options on an XFS file system ... ...
    (Debian-User)
  • Re: USB Ethernet adapter,....
    ... I did try several combinations with " mount -ow /dev/sda0' ... I had the same error: 'Specify the file system' ... > Stephane M wrote: ...
    (linux.redhat)