[Devel] Re: [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>
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list