OpenVZ Forum


Home » Mailing lists » Devel » [PATCH net-2.6.25 2/3]sysctl: prepare core tables to point to netns variables
Re: [PATCH net-2.6.25 2/3]sysctl: prepare core tables to point to netns variables [message #24720 is a reply to message #24661] Sat, 08 December 2007 08:12 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Fri, 07 Dec 2007 16:10:49 +0300

> Some of ctl variables are going to be on the struct 
> net. Here's the way to adjust the ->data pointer on the
> ctl_table-s to point on the right variable.
> 
> Since some pointers still point on the global variables,
> I keep turning the write bits off on such tables.
> 
> This looks to become a common procedure for net sysctls,
> so later parts of this code may migrate to some more
> generic place.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Applied, but please see if you can find a more pretty way to
do this, thanks.
 
Read Message
Read Message
Previous Topic: [PATCH net-2.6.25 1/3]sysctl: make the sys.net.core sysctls per-namespace
Next Topic: [PATCH net-2.6.25 3/3]sysctl: make sysctl_somaxconn per-namespace
Goto Forum:
  


Current Time: Thu Aug 21 09:30:44 GMT 2025

Total time taken to generate the page: 0.05722 seconds