OpenVZ Forum


Home » Mailing lists » Devel » [net-2.6.24][patch 0/2] Dynamically allocate the loopback
Re: [net-2.6.24][patch 2/2] Dynamically allocate the loopback device [message #20392 is a reply to message #20378] Mon, 17 September 2007 17:13 Go to previous messageGo to previous message
Stephen Hemminger is currently offline  Stephen Hemminger
Messages: 37
Registered: August 2006
Member
On Mon, 17 Sep 2007 15:45:11 +0200
dlezcano@fr.ibm.com wrote:

> From: Daniel Lezcano <dlezcano@fr.ibm.com>
> 
> Doing this makes loopback.c a better example of how to do a
> simple network device, and it removes the special case
> single static allocation of a struct net_device, hopefully
> making maintenance easier.
> 

What is before/after code and data size, does it make code smaller?

>  
> -module_init(loopback_init);
> +fs_initcall(loopback_init);
>  
> +struct net_device *loopback_dev;
>  EXPORT_SYMBOL(loopback_dev);





-- 
Stephen Hemminger <shemminger@linux-foundation.org>
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to remove control groups on 2.6.23-rc8-mm1
Next Topic: [PATCH] net: Fix running without sysfs
Goto Forum:
  


Current Time: Tue Oct 07 20:30:43 GMT 2025

Total time taken to generate the page: 0.26942 seconds