static int __init bond_init(struct net_device *bond_dev, struct bond_params *params) 
static int bond_init(struct net_device *bond_dev, struct bond_params *params) 
static int __init bond_init(struct net_device *bond_dev, struct bond_params *params){	struct bonding *bond = bond_dev->priv;	dprintk("Begin bond_init for %s\n", bond_dev->name);	/* initialize rwlocks */	rwlock_init(&bond->lock);	rwlock_init(&bond->curr_slave_lock);	bond->params = *params; /* copy params struct */	/* Initialize pointers */	bond->first_slave = NULL;	bond->curr_active_slave = NULL;	bond->current_arp_slave = NULL;	bond->primary_slave = NULL;	bond->dev = bond_dev;	INIT_LIST_HEAD(&bond->vlan_list);	/* Initialize the device entry points */	bond_dev->open = bond_open;	bond_dev->stop = bond_close;	bond_dev->get_stats = bond_get_stats;	bond_dev->do_ioctl = bond_do_ioctl;	bond_dev->ethtool_ops = &bond_ethtool_ops;	bond_dev->set_multicast_list = bond_set_multicast_list;	bond_dev->change_mtu = bond_change_mtu;	bond_dev->set_mac_address = bond_set_mac_address;	bond_set_mode_ops(bond, bond->params.mode);	bond_dev->destructor = free_netdev;	/* Initialize the device options */	bond_dev->tx_queue_len = 0;	bond_dev->flags |= IFF_MASTER|IFF_MULTICAST;	/* At first, we block adding VLANs. That's the only way to	 * prevent problems that occur when adding VLANs over an	 * empty bond. The block will be removed once non-challenged	 * slaves are enslaved.	 */	bond_dev->features |= NETIF_F_VLAN_CHALLENGED;	/* don't acquire bond device's xmit_lock when 	 * transmitting */	bond_dev->features |= NETIF_F_LLTX;	/* By default, we declare the bond to be fully	 * VLAN hardware accelerated capable. Special	 * care is taken in the various xmit functions	 * when there are slaves that are not hw accel	 * capable	 */	bond_dev->vlan_rx_register = bond_vlan_rx_register;	bond_dev->vlan_rx_add_vid  = bond_vlan_rx_add_vid;	bond_dev->vlan_rx_kill_vid = bond_vlan_rx_kill_vid;	bond_dev->features |= (NETIF_F_HW_VLAN_TX |			       NETIF_F_HW_VLAN_RX |			       NETIF_F_HW_VLAN_FILTER);#ifdef CONFIG_PROC_FS	bond_create_proc_entry(bond);#endif	list_add_tail(&bond->bond_list, &bond_dev_list);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/3c535952d86df83f817595068c9fd2b3cfbd3a4d/bond_main.c/buggy/drivers/net/bonding/bond_main.c