lkml.org 
[lkml]   [2007]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: network driver usage count
Date
On Wed, 21 Nov 2007 20:45:11 +0100
Ferenc Wagner <wferi@niif.hu> wrote:

> Hi!
>
> Under 2.6.23.1, my lsmod output shows this:
>
> $ lsmod | grep tg3
> tg3 100580 0
>
> The usage count is zero, even though it drives my two physical
> interfaces:
>
> $ ls -l /sys/class/net/eth-gb?/device/driver
> lrwxrwxrwx 1 root root 0 2007-11-21 19:58 /sys/class/net/eth-gb1/device/driver -> ../../../bus/pci/drivers/tg3
> lrwxrwxrwx 1 root root 0 2007-11-21 19:58 /sys/class/net/eth-gb2/device/driver -> ../../../bus/pci/drivers/tg3
>
> These interfaces are up and bonded together, but that doesn't seem to
> matter at all. I also checked other machines, the network driver
> (tg3, e1000) usage counts are always zero under various recent 2.6
> kernels, but nonzero under 2.4.21 for example.
>
> And really, the module could be removed, cutting my ssh session. :)
>
> Was this made possible intentionally? If yes, why?

Yes, so devices can be removed at anytime.

--
Stephen Hemminger <shemminger@linux-foundation.org>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-11-21 22:09    [W:0.063 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site