1IPC(2) Linux Programmer's Manual IPC(2)
2
3
4
6 ipc - System V IPC system calls
7
9 #include <linux/ipc.h> /* Definition of needed constants */
10 #include <sys/syscall.h> /* Definition of SYS_* constants */
11 #include <unistd.h>
12
13 int syscall(SYS_ipc, unsigned int call, int first,
14 unsigned long second, unsigned long third, void *ptr,
15 long fifth);
16
17 Note: glibc provides no wrapper for ipc(), necessitating the use of
18 syscall(2).
19
21 ipc() is a common kernel entry point for the System V IPC calls for
22 messages, semaphores, and shared memory. call determines which IPC
23 function to invoke; the other arguments are passed through to the ap‐
24 propriate call.
25
26 User-space programs should call the appropriate functions by their
27 usual names. Only standard library implementors and kernel hackers
28 need to know about ipc().
29
31 ipc() is Linux-specific, and should not be used in programs intended to
32 be portable.
33
35 On some architectures—for example x86-64 and ARM—there is no ipc() sys‐
36 tem call; instead, msgctl(2), semctl(2), shmctl(2), and so on really
37 are implemented as separate system calls.
38
40 msgctl(2), msgget(2), msgrcv(2), msgsnd(2), semctl(2), semget(2), se‐
41 mop(2), semtimedop(2), shmat(2), shmctl(2), shmdt(2), shmget(2),
42 sysvipc(7)
43
45 This page is part of release 5.12 of the Linux man-pages project. A
46 description of the project, information about reporting bugs, and the
47 latest version of this page, can be found at
48 https://www.kernel.org/doc/man-pages/.
49
50
51
52Linux 2021-03-22 IPC(2)