[Devel] Re: [PATCH 3/3] Switch IPC namespace to use sysctl shadows
Dave Hansen
haveblue at us.ibm.com
Tue Nov 20 09:24:13 PST 2007
On Tue, 2007-11-20 at 14:47 +0300, Pavel Emelyanov wrote:
>
>
> +int ipc_clone_sysctl(struct ipc_namespace *ns)
> +{
> + struct ctl_table_header *h;
> + struct ctl_table *t;
> +
> + h = create_sysctl_shadow(init_ipc_ns.ctl_head);
> + if (h == NULL)
> + return -ENOMEM;
> +
> + t = h->ctl_table->child;
> +
> + t[0].data = &ns->shm_ctlmax;
> + t[1].data = &ns->shm_ctlall;
> + t[2].data = &ns->shm_ctlmni;
> + t[3].data = &ns->msg_ctlmax;
> + t[4].data = &ns->msg_ctlmni;
> + t[5].data = &ns->msg_ctlmnb;
> + t[6].data = &ns->sem_ctls;
> +
> + ns->ctl_head = h;
> + return 0;
> +}
>From where does the order for these things come?
-- Dave
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list