]> git.ipfire.org Git - thirdparty/util-linux.git/blame - sys-utils/ipcrm.1.adoc
flock: initialize timevals [-Werror=maybe-uninitialized]
[thirdparty/util-linux.git] / sys-utils / ipcrm.1.adoc
CommitLineData
295b3979 1//po4a: entry man manual
6d5b6948
MB
2////
3Copyright 2002 Andre C. Mazzone (linuxdev@karagee.com)
4May be distributed under the GNU General Public License
5////
6= ipcrm(1)
7:doctype: manpage
f42ed819 8:man manual: User Commands
6d5b6948
MB
9:man source: util-linux {release-version}
10:page-layout: base
11:command: ipcrm
4eab78d3 12:asterisk: *
6d5b6948
MB
13
14== NAME
15
16ipcrm - remove certain IPC resources
17
18== SYNOPSIS
19
4d297435 20*ipcrm* [options]
6d5b6948
MB
21
22*ipcrm* [*shm*|*msg*|*sem*] _ID_ ...
23
24== DESCRIPTION
25
26*ipcrm* removes System V inter-process communication (IPC) objects and associated data structures from the system. In order to delete such objects, you must be superuser, or the creator or owner of the object.
27
28System V IPC objects are of three types: shared memory, message queues, and semaphores. Deletion of a message queue or semaphore object is immediate (regardless of whether any process still holds an IPC identifier for the object). A shared memory object is only removed after all currently attached processes have detached (*shmdt*(2)) the object from their virtual address space.
29
30Two syntax styles are supported. The old Linux historical syntax specifies a three-letter keyword indicating which class of object is to be deleted, followed by one or more IPC identifiers for objects of this type.
31
32The SUS-compliant syntax allows the specification of zero or more objects of all three types in a single command line, with objects specified either by key or by identifier (see below). Both keys and identifiers may be specified in decimal, hexadecimal (specified with an initial '0x' or '0X'), or octal (specified with an initial '0').
33
34The details of the removes are described in *shmctl*(2), *msgctl*(2), and *semctl*(2). The identifiers and keys can be found by using *ipcs*(1).
35
36== OPTIONS
37
38*-a*, *--all* [*shm*] [*msg*] [*sem*]::
4eab78d3
MB
39Remove all resources. When an option argument is provided, the removal is performed only for the specified resource types.
40+
41_Warning!_ Do not use *-a* if you are unsure how the software using the resources might react to missing objects. Some programs create these resources at startup and may not have any code to deal with an unexpected disappearance.
6d5b6948
MB
42
43*-M*, *--shmem-key* _shmkey_::
4eab78d3 44Remove the shared memory segment created with _shmkey_ after the last detach is performed.
6d5b6948
MB
45
46*-m*, *--shmem-id* _shmid_::
4eab78d3 47Remove the shared memory segment identified by _shmid_ after the last detach is performed.
6d5b6948
MB
48
49*-Q*, *--queue-key* _msgkey_::
4eab78d3 50Remove the message queue created with _msgkey_.
6d5b6948
MB
51
52*-q*, *--queue-id* _msgid_::
4eab78d3 53Remove the message queue identified by _msgid_.
6d5b6948
MB
54
55*-S*, *--semaphore-key* _semkey_::
4eab78d3 56Remove the semaphore created with _semkey_.
6d5b6948
MB
57
58*-s*, *--semaphore-id* _semid_::
4eab78d3 59Remove the semaphore identified by _semid_.
6d5b6948 60
2b2d3172 61include::man-common/help-version.adoc[]
6d5b6948
MB
62
63== NOTES
64
4eab78d3
MB
65//TRANSLATORS: Keep {asterisk} untranslated; it expands to "*nix".
66In its first Linux implementation, *ipcrm* used the deprecated syntax shown in the second line of the *SYNOPSIS*. Functionality present in other {asterisk}nix implementations of *ipcrm* has since been added, namely the ability to delete resources by key (not just identifier), and to respect the same command-line syntax. For backward compatibility the previous syntax is still supported.
6d5b6948
MB
67
68== SEE ALSO
69
70*ipcmk*(1),
71*ipcs*(1),
72*msgctl*(2),
73*msgget*(2),
74*semctl*(2),
75*semget*(2),
76*shmctl*(2),
77*shmdt*(2),
78*shmget*(2),
79*ftok*(3),
80*sysvipc*(7)
81
625e9c61 82include::man-common/bugreports.adoc[]
6d5b6948 83
625e9c61 84include::man-common/footer.adoc[]
6d5b6948
MB
85
86ifdef::translation[]
625e9c61 87include::man-common/translation.adoc[]
6d5b6948 88endif::[]