diff options
Diffstat (limited to 'ipc/util.h')
-rw-r--r-- | ipc/util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ipc/util.h b/ipc/util.h index 3646b45a03c9..1187332a89d2 100644 --- a/ipc/util.h +++ b/ipc/util.h | |||
@@ -20,6 +20,15 @@ void shm_init (void); | |||
20 | 20 | ||
21 | struct ipc_namespace; | 21 | struct ipc_namespace; |
22 | 22 | ||
23 | #ifdef CONFIG_POSIX_MQUEUE | ||
24 | extern void mq_clear_sbinfo(struct ipc_namespace *ns); | ||
25 | extern void mq_put_mnt(struct ipc_namespace *ns); | ||
26 | #else | ||
27 | static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { } | ||
28 | static inline void mq_put_mnt(struct ipc_namespace *ns) { } | ||
29 | #endif | ||
30 | |||
31 | #ifdef CONFIG_SYSVIPC | ||
23 | void sem_init_ns(struct ipc_namespace *ns); | 32 | void sem_init_ns(struct ipc_namespace *ns); |
24 | void msg_init_ns(struct ipc_namespace *ns); | 33 | void msg_init_ns(struct ipc_namespace *ns); |
25 | void shm_init_ns(struct ipc_namespace *ns); | 34 | void shm_init_ns(struct ipc_namespace *ns); |
@@ -27,6 +36,15 @@ void shm_init_ns(struct ipc_namespace *ns); | |||
27 | void sem_exit_ns(struct ipc_namespace *ns); | 36 | void sem_exit_ns(struct ipc_namespace *ns); |
28 | void msg_exit_ns(struct ipc_namespace *ns); | 37 | void msg_exit_ns(struct ipc_namespace *ns); |
29 | void shm_exit_ns(struct ipc_namespace *ns); | 38 | void shm_exit_ns(struct ipc_namespace *ns); |
39 | #else | ||
40 | static inline void sem_init_ns(struct ipc_namespace *ns) { } | ||
41 | static inline void msg_init_ns(struct ipc_namespace *ns) { } | ||
42 | static inline void shm_init_ns(struct ipc_namespace *ns) { } | ||
43 | |||
44 | static inline void sem_exit_ns(struct ipc_namespace *ns) { } | ||
45 | static inline void msg_exit_ns(struct ipc_namespace *ns) { } | ||
46 | static inline void shm_exit_ns(struct ipc_namespace *ns) { } | ||
47 | #endif | ||
30 | 48 | ||
31 | /* | 49 | /* |
32 | * Structure that holds the parameters needed by the ipc operations | 50 | * Structure that holds the parameters needed by the ipc operations |