OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 8/12] net_device seq_file
Re: [PATCH 8/12] net_device seq_file [message #17274 is a reply to message #17234] Thu, 18 January 2007 17:07 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Stephen Hemminger <shemminger@osdl.org> writes:

> On Wed, 17 Jan 2007 19:11:52 +0300
> Dmitry Mishin <dim@openvz.org> wrote:
>
>> Library function to create a seq_file in proc filesystem,
>> showing some information for each netdevice.
>> This code is present in the kernel in about 10 instances, and
>> all of them can be converted to using introduced library function.
>> 
>> Signed-off-by: Andrey Savochkin <saw@swsoft.com>
>
> But the implementations can use static data rather than allocation,
> also the long term desire is to get rid of supporting most of these proc
> interfaces.

While we do have the interfaces we need to support them, and not
let them bit rot.

That said so long as we have to individually register and unregister
proc entries it is an active measure by the caller and they should
be able to handle allocation and freeing of data structures as well.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH 2/2] Extract and use wake_up_klogd()
Next Topic: [PATCH] msr.c: use smp_call_function_single()
Goto Forum:
  


Current Time: Tue Sep 09 20:46:50 GMT 2025

Total time taken to generate the page: 0.13192 seconds