diff options
Diffstat (limited to 'ipc/msgutil.c')
-rw-r--r-- | ipc/msgutil.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ipc/msgutil.c b/ipc/msgutil.c index c82c215693d7..f095ee268833 100644 --- a/ipc/msgutil.c +++ b/ipc/msgutil.c | |||
@@ -13,10 +13,29 @@ | |||
13 | #include <linux/security.h> | 13 | #include <linux/security.h> |
14 | #include <linux/slab.h> | 14 | #include <linux/slab.h> |
15 | #include <linux/ipc.h> | 15 | #include <linux/ipc.h> |
16 | #include <linux/ipc_namespace.h> | ||
16 | #include <asm/uaccess.h> | 17 | #include <asm/uaccess.h> |
17 | 18 | ||
18 | #include "util.h" | 19 | #include "util.h" |
19 | 20 | ||
21 | DEFINE_SPINLOCK(mq_lock); | ||
22 | |||
23 | /* | ||
24 | * The next 2 defines are here bc this is the only file | ||
25 | * compiled when either CONFIG_SYSVIPC and CONFIG_POSIX_MQUEUE | ||
26 | * and not CONFIG_IPC_NS. | ||
27 | */ | ||
28 | struct ipc_namespace init_ipc_ns = { | ||
29 | .count = ATOMIC_INIT(1), | ||
30 | #ifdef CONFIG_POSIX_MQUEUE | ||
31 | .mq_queues_max = DFLT_QUEUESMAX, | ||
32 | .mq_msg_max = DFLT_MSGMAX, | ||
33 | .mq_msgsize_max = DFLT_MSGSIZEMAX, | ||
34 | #endif | ||
35 | }; | ||
36 | |||
37 | atomic_t nr_ipc_ns = ATOMIC_INIT(1); | ||
38 | |||
20 | struct msg_msgseg { | 39 | struct msg_msgseg { |
21 | struct msg_msgseg* next; | 40 | struct msg_msgseg* next; |
22 | /* the next part of the message follows immediately */ | 41 | /* the next part of the message follows immediately */ |