From: Tony <tony.uestc@gmail.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: MOD_INC_USE_COUNT
Date: Thu, 10 Nov 2005 22:21:26 +0800 [thread overview]
Message-ID: <43735766.3070205@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0511100859400.18912@chaos.analogic.com>
linux-os (Dick Johnson) wrote:
> On Thu, 10 Nov 2005, Tony wrote:
>
>
>>Hello All,
>>Usually, when a net_device->open is called, it will MOD_INC_USE_COUNT on
>>success. It is removed since 2.5.x, then should I increase the use
>>count? how? thx.
>
>
> Gone! Don't use INC or DEC_USE_COUNT anymore. The kernel takes
> care of that for you. Also, the count shown in `lsmod` no longer
> means anything you can use programmaticly.
>
> Cheers,
> Dick Johnson
> Penguin : Linux version 2.6.13.4 on an i686 machine (5589.55 BogoMips).
> Warning : 98.36% of all statistics are fiction.
> .
>
> ****************************************************************
> The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.
>
> Thank you.
>
But when the module is used by a net_device(interface is up), rmmod also
works. Strange, isn't it?
next prev parent reply other threads:[~2005-11-10 14:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 13:14 MOD_INC_USE_COUNT Tony
2005-11-10 14:03 ` MOD_INC_USE_COUNT linux-os (Dick Johnson)
2005-11-10 14:21 ` Tony [this message]
2005-11-10 15:28 ` MOD_INC_USE_COUNT linux-os (Dick Johnson)
2005-11-13 10:29 ` MOD_INC_USE_COUNT Ralf Baechle
2005-11-15 3:56 ` MOD_INC_USE_COUNT Tony
2005-11-15 15:34 ` MOD_INC_USE_COUNT Ralf Baechle
2005-11-16 7:39 ` MOD_INC_USE_COUNT Tony
2005-11-16 13:24 ` MOD_INC_USE_COUNT Ralf Baechle
2005-11-15 18:52 ` MOD_INC_USE_COUNT Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43735766.3070205@gmail.com \
--to=tony.uestc@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox