| #ifndef __IPC_NAMESPACE_H__ |
| #define __IPC_NAMESPACE_H__ |
| struct rw_semaphore rw_mutex; |
| extern struct ipc_namespace init_ipc_ns; |
| #define INIT_IPC_NS(ns) .ns = &init_ipc_ns, |
| #if defined(CONFIG_SYSVIPC) && defined(CONFIG_IPC_NS) |
| extern void free_ipc_ns(struct kref *kref); |
| extern struct ipc_namespace *copy_ipcs(unsigned long flags, |
| struct ipc_namespace *ns); |
| extern void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, |
| void (*free)(struct ipc_namespace *, |
| struct kern_ipc_perm *)); |
| static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) |
| static inline void put_ipc_ns(struct ipc_namespace *ns) |
| kref_put(&ns->kref, free_ipc_ns); |
| static inline struct ipc_namespace *copy_ipcs(unsigned long flags, |
| struct ipc_namespace *ns) |
| if (flags & CLONE_NEWIPC) |
| static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) |
| static inline void put_ipc_ns(struct ipc_namespace *ns) |