| * Copyright (C) 2006 Pavel Emelyanov <xemul@openvz.org> OpenVZ, SWsoft Inc. |
| #include <linux/ipc_namespace.h> |
| #include <linux/rcupdate.h> |
| #include <linux/nsproxy.h> |
| static struct ipc_namespace *clone_ipc_ns(struct ipc_namespace *old_ns) |
| struct ipc_namespace *ns; |
| ns = kmalloc(sizeof(struct ipc_namespace), GFP_KERNEL); |
| struct ipc_namespace *copy_ipcs(unsigned long flags, struct ipc_namespace *ns) |
| struct ipc_namespace *new_ns; |
| if (!(flags & CLONE_NEWIPC)) |
| new_ns = clone_ipc_ns(ns); |
| void free_ipc_ns(struct kref *kref) |
| struct ipc_namespace *ns; |
| ns = container_of(kref, struct ipc_namespace, kref); |