Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

ipcrm(1) OSS Shell and Utilities Reference Manual
NAME
ipcrm - Removes message queues, semaphore identiers, or shared memory identiers and deal-
locates their data structures
SYNOPSIS
ipcrm [-m shared_memory_ID][-M shared_memory_key]
[-q message_queue_ID][-Q message_key]
[-s semaphore_ID][-S semaphore_key]
FLAGS
-m shared_memory_ID
Removes the shared memory identier specied by the shared_memory_ID value, and
removes the associated shared memory segment and data structure after the nal
detach operation.
-M shared_memory_key
Removes the shared memory identier created with the specied shared_memory_key
value, and removes the associated shared memory segment and data structure after the
nal detach operation.
-q message_queue_ID
Removes the message queue identier specied by the message_queue_ID value, and
removes the associated message queue and the data structure.
-Q message_key
Removes the message queue identier created with the specied message_key value,
and removes the associated message queue and the data structure.
-s semaphore_ID
Removes the semaphore set identier specied by the semaphore_ID value, and
removes the associated set of semaphores and data structure.
-S semaphore_key
Removes the semaphore set identier created with the specied semaphore_key value,
and removes the associated set of semaphores and data structure.
DESCRIPTION
The ipcrm command removes one or more message queues, semaphore identiers, or shared
memory identiers from the processor on which it runs. The details of the remove operations are
described on the reference pages for the msgctl(), semctl(), and shmctl() functions. The
identiers and keys can be determined by using the ipcs command.
EXAMPLES
1. To remove the shared memory segment associated with shared memory identier 128
from the processor on which your terminal session runs, enter:
ipcrm -m 128
2. To remove the shared memory segment associated with shared memory identier 128 on
processor 4, enter:
run -cpu=4 ipcrm -m 128
3. To remove the semaphore set associated with semaphore identier 222 from the proces-
sor on which your terminal session runs, enter:
ipcrm -s 222
450 Hewlett-Packard Company 527188-003