diff options
Diffstat (limited to 'include/linux/ipc_namespace.h')
-rw-r--r-- | include/linux/ipc_namespace.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/ipc_namespace.h b/include/linux/ipc_namespace.h index a491fc9dd231..6db5522eef51 100644 --- a/include/linux/ipc_namespace.h +++ b/include/linux/ipc_namespace.h | |||
@@ -2,11 +2,20 @@ | |||
2 | #define __IPC_NAMESPACE_H__ | 2 | #define __IPC_NAMESPACE_H__ |
3 | 3 | ||
4 | #include <linux/err.h> | 4 | #include <linux/err.h> |
5 | #include <linux/idr.h> | ||
6 | #include <linux/rwsem.h> | ||
7 | |||
8 | struct ipc_ids { | ||
9 | int in_use; | ||
10 | unsigned short seq; | ||
11 | unsigned short seq_max; | ||
12 | struct rw_semaphore rw_mutex; | ||
13 | struct idr ipcs_idr; | ||
14 | }; | ||
5 | 15 | ||
6 | struct ipc_ids; | ||
7 | struct ipc_namespace { | 16 | struct ipc_namespace { |
8 | struct kref kref; | 17 | struct kref kref; |
9 | struct ipc_ids *ids[3]; | 18 | struct ipc_ids ids[3]; |
10 | 19 | ||
11 | int sem_ctls[4]; | 20 | int sem_ctls[4]; |
12 | int used_sems; | 21 | int used_sems; |