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