Network Device Management for Linux Network Protocol Stack (Continued)

  
 

Note that such a large structure, there is a member called: struct net_device *next, huh, huh, very familiar with it, is to use it to establish a linked list of network devices. When each network device is started, register_netdev() (drivers/net/net_init.c) is called to track this function: int register_netdev(struct net_device *dev){int err;rtnl_lock();/** If the name is a Format string the caller wants us to* do a name allocation*/if (strchr(dev->name, '%')){err = dev_alloc_name(dev, dev->name);if (err < 0) Goto out;}

/** Back compatibility hook. Kill this one in 2.5*/

if (dev->name[0]==0

Copyright © Windows knowledge All Rights Reserved