[net-2.6.24][patch 2/2] Dynamically allocate the loopback device

Stephen Hemminger shemminger at linux-foundation.org
Mon Sep 17 10:13:14 PDT 2007


On Mon, 17 Sep 2007 15:45:11 +0200
dlezcano at fr.ibm.com wrote:

> From: Daniel Lezcano <dlezcano at 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 at linux-foundation.org>


More information about the Containers mailing list