xref: /freebsd/usr.bin/ipcs/ipcs.1 (revision 306005e78ce67119c774058260af6531ea4e9d8b)
149fbc2acSDoug Rabson.\"
249fbc2acSDoug Rabson.\" Copyright (c) 1994 SigmaSoft, Th. Lockert
349fbc2acSDoug Rabson.\" All rights reserved.
449fbc2acSDoug Rabson.\"
549fbc2acSDoug Rabson.\" Redistribution and use in source and binary forms, with or without
649fbc2acSDoug Rabson.\" modification, are permitted provided that the following conditions
749fbc2acSDoug Rabson.\" are met:
849fbc2acSDoug Rabson.\" 1. Redistributions of source code must retain the above copyright
949fbc2acSDoug Rabson.\"    notice, this list of conditions and the following disclaimer.
1049fbc2acSDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright
1149fbc2acSDoug Rabson.\"    notice, this list of conditions and the following disclaimer in the
1249fbc2acSDoug Rabson.\"    documentation and/or other materials provided with the distribution.
1349fbc2acSDoug Rabson.\" 3. All advertising materials mentioning features or use of this software
1449fbc2acSDoug Rabson.\"    must display the following acknowledgement:
1549fbc2acSDoug Rabson.\"      This product includes software developed by SigmaSoft, Th. Lockert.
1649fbc2acSDoug Rabson.\" 3. The name of the author may not be used to endorse or promote products
1749fbc2acSDoug Rabson.\"    derived from this software without specific prior written permission
1849fbc2acSDoug Rabson.\"
1949fbc2acSDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2049fbc2acSDoug Rabson.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2149fbc2acSDoug Rabson.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2249fbc2acSDoug Rabson.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2349fbc2acSDoug Rabson.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2449fbc2acSDoug Rabson.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2549fbc2acSDoug Rabson.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2649fbc2acSDoug Rabson.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2749fbc2acSDoug Rabson.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2849fbc2acSDoug Rabson.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2949fbc2acSDoug Rabson.\"
30306005e7SPhilippe Charnier.\"	$Id: ipcs.1,v 1.7 1997/07/15 09:55:58 charnier Exp $
3149fbc2acSDoug Rabson.\"
3249fbc2acSDoug Rabson.Dd June 18, 1994
3349fbc2acSDoug Rabson.Dt "IPCS" 1
3454d17bb8SNate Williams.Os FreeBSD 2.0
3549fbc2acSDoug Rabson.Sh NAME
3649fbc2acSDoug Rabson.Nm ipcs
3749fbc2acSDoug Rabson.Nd report System V interprocess communication facilities status
3849fbc2acSDoug Rabson.Sh SYNOPSIS
3900bbaadcSPhilippe Charnier.Nm
4049fbc2acSDoug Rabson.Op Fl abcmopqstMQST
4149fbc2acSDoug Rabson.Op Fl C Ar system
4249fbc2acSDoug Rabson.Op Fl N Ar core
4349fbc2acSDoug Rabson.Sh DESCRIPTION
4449fbc2acSDoug RabsonThe
4500bbaadcSPhilippe Charnier.Nm
4649fbc2acSDoug Rabsonprogram provides information on System V interprocess communication
4749fbc2acSDoug Rabson(IPC) facilities on the system.
4849fbc2acSDoug Rabson.Pp
4949fbc2acSDoug RabsonThe options are as follows:
5049fbc2acSDoug Rabson.Bl -tag -width Ds
5149fbc2acSDoug Rabson.It Fl a
5249fbc2acSDoug RabsonShow the maximum amount of information possible when
5349fbc2acSDoug Rabsondisplaying active semaphores, message queues,
5449fbc2acSDoug Rabsonand shared memory segments.
5549fbc2acSDoug Rabson(This is shorthand for specifying the
5649fbc2acSDoug Rabson.Fl b ,
5749fbc2acSDoug Rabson.Fl c ,
5849fbc2acSDoug Rabson.Fl o ,
5949fbc2acSDoug Rabson.Fl p ,
6049fbc2acSDoug Rabsonand
6149fbc2acSDoug Rabson.Fl t
6249fbc2acSDoug Rabsonoptions.)
6349fbc2acSDoug Rabson.It Fl b
6449fbc2acSDoug RabsonShow the maximum allowed sizes for active semaphores, message queues,
6549fbc2acSDoug Rabsonand shared memory segments.  The
6649fbc2acSDoug Rabson.Dq maximum allowed size
6749fbc2acSDoug Rabsonis the maximum number of bytes in a message on a message queue,
6849fbc2acSDoug Rabsonthe size of a shared memory segment,
69e83201b4SWolfram Schneideror the number of semaphores in a set of semaphores.
7049fbc2acSDoug Rabson.It Fl c
7149fbc2acSDoug RabsonShow the creator's name and group for active semaphores, message queues,
7249fbc2acSDoug Rabsonand shared memory segments.
7349fbc2acSDoug Rabson.It Fl m
7449fbc2acSDoug RabsonDisplay information about active shared memory segments.
7549fbc2acSDoug Rabson.It Fl o
7649fbc2acSDoug RabsonShow outstanding usage for active message queues,
7749fbc2acSDoug Rabsonand shared memory segments.  The
7849fbc2acSDoug Rabson.Dq outstanding usage
7949fbc2acSDoug Rabsonis the number of messages in a message queue, or the number
8049fbc2acSDoug Rabsonof processes attached to a shared memory segment.
8149fbc2acSDoug Rabson.It Fl p
8249fbc2acSDoug RabsonShow the process ID information for active semaphores, message queues,
8349fbc2acSDoug Rabsonand shared memory segments.  The
8449fbc2acSDoug Rabson.Dq process ID information
8549fbc2acSDoug Rabsonis the last process to send a message to or receive a message from
8649fbc2acSDoug Rabsona message queue,
8749fbc2acSDoug Rabsonthe process that created a semaphore, or the last process to attach
8849fbc2acSDoug Rabsonor detach a shared memory segment.
8949fbc2acSDoug Rabson.It Fl q
9049fbc2acSDoug RabsonDisplay information about active message queues.
9149fbc2acSDoug Rabson.It Fl s
9249fbc2acSDoug RabsonDisplay information about active semaphores.
9349fbc2acSDoug Rabson.It Fl t
9449fbc2acSDoug RabsonShow access times for active semaphores, message queues,
9549fbc2acSDoug Rabsonand shared memory segments.  The access times is the time
9649fbc2acSDoug Rabsonof the last control operation on an IPC object,
9749fbc2acSDoug Rabsonthe last send or receive of a message,
9849fbc2acSDoug Rabsonthe last attach or detach of a shared memory segment,
9949fbc2acSDoug Rabsonor the last operation on a semaphore.
10049fbc2acSDoug Rabson.It Fl C Ar system
10149fbc2acSDoug RabsonExtract the name list from the specified system instead of the
10249fbc2acSDoug Rabsondefault
10349fbc2acSDoug Rabson.Dq Pa /kernel .
10449fbc2acSDoug Rabson.It Fl M
10549fbc2acSDoug RabsonDisplay system information about shared memory.
10649fbc2acSDoug Rabson.It Fl N Ar core
10749fbc2acSDoug RabsonExtract values associated with the name list from the specified
10849fbc2acSDoug Rabsoncore instead of the default
10949fbc2acSDoug Rabson.Dq Pa /dev/kmem .
11049fbc2acSDoug Rabson.It Fl Q
11149fbc2acSDoug RabsonDisplay system information about messages queues.
11249fbc2acSDoug Rabson.It Fl S
11349fbc2acSDoug RabsonDisplay system information about semaphores.
11449fbc2acSDoug Rabson.It Fl T
11549fbc2acSDoug RabsonDisplay system information about shared memory, message queues
116d301a38dSEivind Eklundand semaphores.
11749fbc2acSDoug Rabson.El
11849fbc2acSDoug Rabson.Pp
11949fbc2acSDoug RabsonIf none of the
12049fbc2acSDoug Rabson.Fl M ,
12149fbc2acSDoug Rabson.Fl m ,
12249fbc2acSDoug Rabson.Fl Q ,
12349fbc2acSDoug Rabson.Fl q ,
12449fbc2acSDoug Rabson.Fl S ,
12549fbc2acSDoug Rabsonor
12649fbc2acSDoug Rabson.Fl s
12749fbc2acSDoug Rabsonoptions are specified, information about all active IPC facilities is
12849fbc2acSDoug Rabsonlisted.
12949fbc2acSDoug Rabson.Sh RESTRICTIONS
13049fbc2acSDoug RabsonSystem data structures may change while
13100bbaadcSPhilippe Charnier.Nm
13249fbc2acSDoug Rabsonis running; the output of
13300bbaadcSPhilippe Charnier.Nm
13449fbc2acSDoug Rabsonis not guaranteed to be consistent.
13549fbc2acSDoug Rabson.Sh BUGS
13649fbc2acSDoug RabsonThis manual page is woefully incomplete, because it does not
13749fbc2acSDoug Rabsonat all attempt to explain the information printed by
13849fbc2acSDoug Rabson.Nm ipcs .
13949fbc2acSDoug Rabson.Sh FILES
14049fbc2acSDoug Rabson.Bl -tag -width /etc/passwd -compact
14149fbc2acSDoug Rabson.It Pa /dev/kmem
14249fbc2acSDoug Rabsondefault kernel memory
14349fbc2acSDoug Rabson.It Pa /kernel
14449fbc2acSDoug Rabsondefault system name list
14549fbc2acSDoug Rabson.El
14649fbc2acSDoug Rabson.Sh SEE ALSO
14749fbc2acSDoug Rabson.Xr ipcrm 1
148306005e7SPhilippe Charnier.Sh AUTHORS
149306005e7SPhilippe Charnier.An Thorsten Lockert Aq tholo@sigmasoft.com
150