Re: more on module usage count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniele Bellucci wrote:
IIRC the same problem occours with 8139cp [on 2.6.0-test2] !!!


Where? 8139cp definitely shuts down the hardware during _close.

Jeff


static int cp_close (struct net_device *dev)
{
        struct cp_private *cp = dev->priv;

        if (netif_msg_ifdown(cp))
                printk(KERN_DEBUG "%s: disabling interface\n", dev->name);

        netif_stop_queue(dev);
        netif_carrier_off(dev);

        spin_lock_irq(&cp->lock);
        cp_stop_hw(cp);
        spin_unlock_irq(&cp->lock);

        free_irq(dev->irq, dev);
        cp_free_rings(cp);
        return 0;
}

- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux