public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] add kobject to struct module
Date: Sat, 06 Mar 2004 01:34:02 +1100	[thread overview]
Message-ID: <1078497241.2492.908.camel@bach> (raw)
In-Reply-To: <20040224232940.GA3140@kroah.com>

[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]

On Wed, 2004-02-25 at 10:29, Greg KH wrote:
> So, here's a patch on top of your patch (full patch against 2.6.3 is
> below), that simply makes the module reference file be owned by the
> module that it is assigned to.  Yes, this means that when you actually
> read the file value, the reference is 1 greater than when it is closed,
> but that's the breaks.  It does solve the "grab the file and then try to
> unload the module" problem, as it simply prevents this from happening.
> 
> Comments?

I've rewritten your rewrite again 8)

This patch actually implements module_param in sysfs for modules.  You
can see my tests in crypto_null().

What's missing is inbuilt modules.  I think /sys/modules/ne2k/debug
should exist whether ne2k is built-in or modular, for example.  Since
the only thing we have is a kparam with "ne2k.debug" as its name, there
will have to be some kludgery here, but we can end up with something OK.

Cheers,
Rusty.
-- 
Anyone who quotes me in their signature is an idiot -- Rusty Russell

[-- Attachment #2: module_kobject.patch.gz --]
[-- Type: application/x-gzip, Size: 3310 bytes --]

  reply	other threads:[~2004-03-05 14:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-09 22:24 [RFC] add kobject to struct module Greg KH
2003-09-10  0:13 ` Greg KH
2003-09-10  3:31 ` Rusty Russell
2003-09-10  4:11   ` Greg KH
2003-09-10  8:07     ` Rusty Russell
2003-09-10 15:26       ` Patrick Mochel
2003-09-11  1:13         ` Rusty Russell
2003-09-11  6:26           ` Greg KH
2003-09-11  8:18             ` Rusty Russell
2003-09-11 17:15               ` Greg KH
2004-02-24 23:29           ` Greg KH
2004-03-05 14:34             ` Rusty Russell [this message]
2004-05-07 21:28               ` Greg KH
2003-09-10 23:06       ` Greg KH
2003-09-11  2:33         ` Rusty Russell
2003-09-10 23:32 ` Russell King
2003-09-10 23:45   ` Greg KH
2003-09-11  0:04     ` Mike Fedyk
2003-09-11  0:21       ` Greg KH
2003-09-11  2:10       ` Rusty Russell
2003-09-11  2:04   ` Rusty Russell

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=1078497241.2492.908.camel@bach \
    --to=rusty@rustcorp.com.au \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox