[Devel] Re: [PATCH 3/3] Switch IPC namespace to use sysctl shadows
Pavel Emelyanov
xemul at openvz.org
Wed Nov 21 01:21:06 PST 2007
Dave Hansen wrote:
> 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?
>From the original tables.
> -- 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