struct ipc_namespace *copy_ipcs(unsigned long flags, struct user_namespace *user_ns, struct ipc_namespace *ns) { if (!(flags & CLONE_NEWIPC)) return get_ipc_ns(ns); return create_ipc_ns(user_ns, ns); }
struct ipc_namespace *copy_ipcs(unsigned long flags, struct task_struct *tsk) { struct ipc_namespace *ns = tsk->nsproxy->ipc_ns; if (!(flags & CLONE_NEWIPC)) return get_ipc_ns(ns); return create_ipc_ns(tsk, ns); }