1ipc(2)                        System Calls Manual                       ipc(2)
2
3
4

NAME

6       ipc - System V IPC system calls
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <linux/ipc.h>        /* Definition of needed constants */
13       #include <sys/syscall.h>      /* Definition of SYS_* constants */
14       #include <unistd.h>
15
16       int syscall(SYS_ipc, unsigned int call, int first,
17                   unsigned long second, unsigned long third, void *ptr,
18                   long fifth);
19
20       Note:  glibc  provides  no  wrapper for ipc(), necessitating the use of
21       syscall(2).
22

DESCRIPTION

24       ipc() is a common kernel entry point for the  System V  IPC  calls  for
25       messages,  semaphores,  and  shared  memory.  call determines which IPC
26       function to invoke; the other arguments are passed through to  the  ap‐
27       propriate call.
28
29       User-space  programs  should  call  the  appropriate functions by their
30       usual names.  Only standard library  implementors  and  kernel  hackers
31       need to know about ipc().
32

VERSIONS

34       On some architectures—for example x86-64 and ARM—there is no ipc() sys‐
35       tem call; instead, msgctl(2), semctl(2), shmctl(2), and  so  on  really
36       are implemented as separate system calls.
37

STANDARDS

39       Linux.
40

SEE ALSO

42       msgctl(2),  msgget(2),  msgrcv(2), msgsnd(2), semctl(2), semget(2), se‐
43       mop(2),  semtimedop(2),  shmat(2),  shmctl(2),   shmdt(2),   shmget(2),
44       sysvipc(7)
45
46
47
48Linux man-pages 6.04              2023-03-30                            ipc(2)
Impressum