CONTENT
  • CHANGES
Szukaj
counter

#top ipcs-ipcrm


ipcs - report XSI interprocess communication facilities status
ipcrm - remove an XSI message queue, semaphore set, or shared memory segment identifier

Powiązane:

SYNOPSIS
ipcs [-qms][-a | -bcopt]
ipcrm [ -q msgid | -Q msgkey | -s semid | -S semkey | -m shmid | -M shmkey ] ...


DESCRIPTION
ipcs [-qms][-a | -bcopt]

The ipcs facility supports the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.

The ipcs utility accepts the following options:



OPTIONS
-q
Write information about active message queues.

-m
Write information about active shared memory segments.

-s
Write information about active semaphore sets.


If -q, -m, or -s are specified, only information about those facilities shall be written. If none of these three are specified, information about all three shall be written subject to the following options:

-a
Use all print options. (This is a shorthand notation for -b, -c, -o, -p, and -t.)

-b
Write information on maximum allowable size. (Maximum number of
bytes in messages on queue for message queues, size of segments
for shared memory, and number of semaphores in each set for
semaphores.)

-c
Write creator’s user name and group name; see below.

-o
Write information on outstanding usage. (Number of messages on queue and total number of bytes in messages on queue for message queues, and number of processes attached to shared memory segments.)

-p
Write process number information. (Process ID of the last process to send a message and process ID of the last process to receive a message on message queues, process ID of the creating process, and process ID of the last process to attach or detach on shared memory segments.)

-t
Write time information. (Time of the last control operation that changed the access permissions for all facilities, time of the last msgsnd() and msgrcv() operations on message queues, time of the last shmat() and shmdt() operations on shared memory, and time of the last semop() operation on semaphores.)




DESCRIPTION
ipcrm [ -q msgid | -Q msgkey | -s semid | -S semkey | -m shmid | -M shmkey ] ...

The ipcrm facility supports the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.

The following options shall be supported:


OPTIONS
-q msgid
Remove the message queue identifier msgid from the system and destroy the message queue and data structure associated with it.

-m shmid
Remove the shared memory identifier shmid from the system. The shared memory segment and data structure associated with it shall be destroyed after the last detach.

-s semid
Remove the semaphore identifier semid from the system and destroy the set of semaphores and data structure associated with it.

-Q msgkey
Remove the message queue identifier, created with key msgkey, from the system and destroy the message queue and data structure associated with it.

-M shmkey
Remove the shared memory identifier, created with key shmkey, from the system. The shared memory segment and data structure associated with it shall be destroyed after the last detach.

-S semkey
Remove the semaphore identifier, created with key semkey, from the system and destroy the set of semaphores and data structure associated with it.



EXAMPLES
ipcs -m
------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x52564801 753664     root      660        114192384  0
0x52564802 786433     root      660        33439744   0
0x52564803 819202     informix  660        8388608    0
0x52564804 851971     informix  660        8388608    0

ipcrm -m 753664
ipcrm -m 786433
ipcrm -m 819202
ipcrm -m 851971





Zmodyfikowany ostatnio: 2014/05/15 09:48:49 (9 lat temu), textsize: 5,03 kB, htmlsize: 5,95 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników