1 #ifndef __IPC_NAMESPACE_H__
2 #define __IPC_NAMESPACE_H__
9 struct ipc_ids *ids[3];
26 extern struct ipc_namespace init_ipc_ns;
29 #define INIT_IPC_NS(ns) .ns = &init_ipc_ns,
31 #define INIT_IPC_NS(ns)
34 #if defined(CONFIG_SYSVIPC) && defined(CONFIG_IPC_NS)
35 extern void free_ipc_ns(struct kref *kref);
36 extern struct ipc_namespace *copy_ipcs(unsigned long flags,
37 struct ipc_namespace *ns);
39 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns)
46 static inline void put_ipc_ns(struct ipc_namespace *ns)
48 kref_put(&ns->kref, free_ipc_ns);
51 static inline struct ipc_namespace *copy_ipcs(unsigned long flags,
52 struct ipc_namespace *ns)
54 if (flags & CLONE_NEWIPC)
55 return ERR_PTR(-EINVAL);
60 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns)
65 static inline void put_ipc_ns(struct ipc_namespace *ns)