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

ipcrm(1) OSS Shell and Utilities Reference Manual
NAME
ipcrm - Removes message queues, semaphore identifiers, or shared memory identifiers and deal-
locates their data structures
SYNOPSIS
ipcrm [-m shared_memory_ID][-M shared_memory_key]
[-q message_que ue_ID][-Q message_key]
[-s semaphore_ID][-S semaphore_key]
FLAGS
-m shared_memory_ID
Removes the shared memory identifier specified by the
shared_me mory_ID value, and removes the associated shared memory
segment and data structure after the final detach operation.
-M shared_memory_k ey
Removes the shared memory identifier created with the specified
shared_me mory_key value, and removes the associated shared
memory segment and data structure after the final detach operation.
-q message _queue_ID
Removes the message queue identifier specified by the
message_queue_ID value, and removes the associated message queue
and the data structure.
-Q message_key
Removes the message queue identifier created with the specified
message_key value, and removes the associated message queue and
the data structure.
-s semaphore_ID
Removes the semaphore set identifier specified by the semaphore_ID
value, and removes the associated set of semaphores and data struc-
ture.
-S semaphore_key
Removes the semaphore set identifier created with the specified
semaphore_key value, and removes the associated set of semaphores
and data structure.
DESCRIPTION
The ipcrm command removes one or more message queues, semaphore identifiers, or shared
memory identifiers 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
identifiers and keys can be determined by using the ipcs command.
EXAMPLES
1. To remove the shared memory segment associated with shared memory
identifier 128 from the processor on which your terminal session runs,
enter:
ipcrm -m 128
458 Hewlett-Packard Company 527188-021