All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anders Fugmann <afu@fugmann.dhs.org>
To: Harald Welte <laforge@gnumonks.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: remove usage of __MOD_XXX_USAGE_COUNT and derivatives
Date: Fri, 10 Jan 2003 14:49:31 +0100	[thread overview]
Message-ID: <3E1ECF6B.5080109@fugmann.dhs.org> (raw)
In-Reply-To: <20030110131315.GS1353@sunbeam.de.gnumonks.org>

Harald Welte wrote:
> On Thu, Jan 09, 2003 at 10:52:45PM +0100, Anders Fugmann wrote:
> 
> Ok, this seems to be some new 2.5.x api changes - I first need to get
> familiar with this.
Most of the documentation I found in include/linux/module.h.

> 
> 
>>Conversion enables module unloading on 2.5 kernels.
>>The patch is against 2.5.55. I have only tested ipv4 functionality, and 
>>I see no reason that ipv6 shound not work also.
One thing I have noticed is that the module usage count for 'ip_tables'
gets incremented twice when loading a module that depends on the
ip_tables module. Unloading the module again also decrements usage count
on ip_tables with 2. This happens both on vanilla 2.5.55 and 2.5.55 with 
the patch applied. It does not happen on 2.4.20 though.

One question. Why is the module count increased (code wise) whenever a 
new module is loaded, that depends on the current module? Eg. When 
loading ipt_MARK, the module count for ip_tables is increased. The 
dependancies are still kept by the kernel so ip_tables cannot be 
unloaded anyhow.

> So if the patch is accepted (still need to look at it), I will submit it
> for kernel inclusion. 
Then I send it to the right place it seems.

Regards
Anders Fugmann.

  reply	other threads:[~2003-01-10 13:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-09 21:52 remove usage of __MOD_XXX_USAGE_COUNT and derivatives Anders Fugmann
2003-01-10 13:13 ` Harald Welte
2003-01-10 13:49   ` Anders Fugmann [this message]
2003-01-10 13:49     ` Harald Welte
2003-01-10 15:21       ` Anders Fugmann
2003-01-12 16:36         ` Harald Welte
2003-01-12 22:14           ` Bart De Schuymer
2003-01-13 16:58             ` Anders Fugmann
2003-01-13 22:56               ` Bart De Schuymer
2003-01-13 22:21                 ` Anders Fugmann
2003-01-13 23:53                   ` Bart De Schuymer
     [not found]                     ` <3E234A92.50606@fugmann.dhs.org>
2003-01-14  1:14                       ` Bart De Schuymer
2003-01-11 16:13     ` Bart De Schuymer
2003-01-11 18:36       ` Anders Fugmann
2003-02-16 19:43 ` Anders Fugmann

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=3E1ECF6B.5080109@fugmann.dhs.org \
    --to=afu@fugmann.dhs.org \
    --cc=laforge@gnumonks.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.