aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/util.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-08 11:02:50 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-08 11:02:57 -0400
commitff96e612cba32510e263e17b213235fe5746397e (patch)
treea8df57d76b10e0901a4fb76cd2987eb9826a560a /ipc/util.h
parentcd84a42f315e50edd454c27a3da3951ccd3d735a (diff)
parent577c9c456f0e1371cbade38eaf91ae8e8a308555 (diff)
Merge commit 'v2.6.30-rc1' into core/urgent
Merge reason: need latest upstream to queue up dependent fix Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'ipc/util.h')
-rw-r--r--ipc/util.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/ipc/util.h b/ipc/util.h
index 3646b45a03c..1187332a89d 100644
--- a/ipc/util.h
+++ b/ipc/util.h
@@ -20,6 +20,15 @@ void shm_init (void);
20 20
21struct ipc_namespace; 21struct ipc_namespace;
22 22
23#ifdef CONFIG_POSIX_MQUEUE
24extern void mq_clear_sbinfo(struct ipc_namespace *ns);
25extern void mq_put_mnt(struct ipc_namespace *ns);
26#else
27static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { }
28static inline void mq_put_mnt(struct ipc_namespace *ns) { }
29#endif
30
31#ifdef CONFIG_SYSVIPC
23void sem_init_ns(struct ipc_namespace *ns); 32void sem_init_ns(struct ipc_namespace *ns);
24void msg_init_ns(struct ipc_namespace *ns); 33void msg_init_ns(struct ipc_namespace *ns);
25void shm_init_ns(struct ipc_namespace *ns); 34void shm_init_ns(struct ipc_namespace *ns);
@@ -27,6 +36,15 @@ void shm_init_ns(struct ipc_namespace *ns);
27void sem_exit_ns(struct ipc_namespace *ns); 36void sem_exit_ns(struct ipc_namespace *ns);
28void msg_exit_ns(struct ipc_namespace *ns); 37void msg_exit_ns(struct ipc_namespace *ns);
29void shm_exit_ns(struct ipc_namespace *ns); 38void shm_exit_ns(struct ipc_namespace *ns);
39#else
40static inline void sem_init_ns(struct ipc_namespace *ns) { }
41static inline void msg_init_ns(struct ipc_namespace *ns) { }
42static inline void shm_init_ns(struct ipc_namespace *ns) { }
43
44static inline void sem_exit_ns(struct ipc_namespace *ns) { }
45static inline void msg_exit_ns(struct ipc_namespace *ns) { }
46static 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