1 .\" Copyright 2020 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH SVIPC 7 2020-04-11 "Linux" "Linux Programmer's Manual"
27 sysvipc \- System V interprocess communication mechanisms
29 System V IPC is the name given to three interprocess
30 communication mechanisms that are widely available on UNIX systems:
31 message queues, semaphore, and shared memory.
34 System V message queues allow data to be exchanged in units called messages.
35 Each messages can have an associated priority,
36 POSIX message queues provide an alternative API for achieving the same result;
40 The System V message queue API consists of the following system calls:
43 Create a new message queue or obtain the ID of an existing message queue.
44 This call returns an identifier that is used in the remaining APIs.
47 Add a message to a queue.
50 Remove a message from a queue.
53 Perform various control operations on a queue, including deletion.
56 System V semaphores allow processes to synchronize their actions.
57 System V semaphores are allocated in groups called sets;
58 each semaphore in a set is a counting semaphore.
59 POSIX semaphores provide an alternative API for achieving the same result;
63 The System V semaphore API consists of the following system calls:
66 Create a new set or obtain the ID of an existing set.
67 This call returns an identifier that is used in the remaining APIs.
70 Perform operations on the semaphores in a set.
73 Perform various control operations on a set, including deletion.
75 .SS Shared memory segments
76 System V shared memory allows processes to share a region a memory
78 POSIX shared memory is an alternative API for achieving the same result; see
81 The System V shared memory API consists of the following system calls:
84 Create a new segment or obtain the ID of an existing segment.
85 This call returns an identifier that is used in the remaining APIs.
88 Attach an existing shared memory object into the calling process's
92 Detach a segment from the calling process's address space.
95 Perform various control operations on a segment, including deletion.
98 For a discussion of the interaction of System V IPC objects and
100 .BR ipc_namespaces (7).
119 .BR ipc_namespaces (7)