ipcs(1)

ipcs(1)

NAME

ipcs - report status of interprocess communication facilities

SYNOPSIS

ipcs [-mqs][-abcopt][-C core] [-N namelist]

DESCRIPTION

ipcs displays certain information about active interprocess communication facilities. With no options, ipcs displays information in short format for the message queues, shared memory segments, and semaphores that are currently active in the system.

Options

The following options restrict the display to the corresponding facilities.

(none)

This is equivalent to -mqs.

-m

Display information about active shared memory segments.

-q

Display information about active message queues.

-s

Display information about active semaphores.

The following options add columns of data to the display. See "Column Description" below.

(none)

Display default columns: for all facilities: T, ID, KEY, MODE, OWNER, GROUP.

-a

Display all columns, as appropriate. This is equivalent to -bcopt.

-b

Display largest-allowable-size information: for message queues: QBYTES; for shared

 

memory segments: SEGSZ; for semaphores: NSEMS.

 

-c

Display creator's login name and group name: for all facilities: CREATOR, CGROUP.

-o

Display information on outstanding usage: for message queues: CBYTES, QNUM; for

 

shared memory segments: NATTCH.

 

 

-p

Display process number information: for

message

queues: LSPID, LRPID; for

 

shared memory segments: CPID, LPID.

 

 

-t

Display time information: for all facilities:

CTIME;

for message queues: STIME,

 

RTIME; for shared memory segments: ATIME, DTIME; for semaphores: OTIME.

The following options rede®ne the sources of information.

 

 

-Ccore

Use core in place of /dev/kmem. core can be a core ®le or a directory created by

 

savecrash or savecore.

 

 

-Nnamelist

Use ®le namelist or the namelist within core in place of /stand/vmunix. It opens

 

a crash dump for reading. Please refer to cr_open(3) for more details.

Column Descriptions

The column headings and the meaning of the columns in an ipcs listing are given below. The columns are printed from left to right in the order shown below.

TFacility type:

m Shared memory segment q Message queue

s Semaphore

ID

The identi®er for the facility entry.

KEY

The key used as an argument to msgget(), semget(), or shmget() to create

 

the facility entry. (Note: The key of a shared memory segment is changed to

 

IPC_PRIVATE when the segment has been removed until all processes attached to

 

the segment detach it.)

MODE

The facility access modes and ¯ags: The mode consists of 11 characters that are inter-

 

preted as follows:

 

The ®rst two characters can be:

i

HP-UX Release 11i: December 2000

− 1 −

Section 1361