From: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PART1: Proposed init & module changes for 2.5
Date: Sun, 23 Sep 2001 12:43:36 +0200 [thread overview]
Message-ID: <20010923124336.D30515@nightmaster.csn.tu-chemnitz.de> (raw)
In-Reply-To: <E15l2tb-0004KK-00@wagner>
In-Reply-To: <E15l2tb-0004KK-00@wagner>; from rusty@rustcorp.com.au on Sun, Sep 23, 2001 at 04:37:43PM +1000
Hi,
I like the PARAM() part, but still have some question. Hope you
can clarify.
On Sun, Sep 23, 2001 at 04:37:43PM +1000, Rusty Russell wrote:
> OLD: module_init(initfn)
> NEW: init_and_startcall(initfn, startfn);
> COMMENTS:
> Please use a semicolon at the end. Modulable code should
> transition to a two-stage init (initfn sets everything up
> and may fail, and startfn which exposes the module to the rest
> of the kernel and can't fail). Some modules only need
> initfn or startfn, in which case use initcall() or startcall().
Why separating them?
> OLD: void exitfn(void) { ...; }
> module_exit(void)
> NEW: int stopfn(void) { ...; return 0; }
> void exitfn(void) { ...; }
> stopcall(stopfn);
> exitcall(exitfn);
> COMMENTS:
> If there are neither, then module is not unloadable. This is
> perfectly OK. If stopfn returns 0 (otherwise it should be
> -errno) it must have deregistered itself from the rest of the
> kernel (ie. module count can never increase again), but still
> be usable to anyone using it currently. Once exitfn is
> called, it is guaranteed to be unused.
Same question here: Why you changed this?
What is meant with "usable to anyone using it currently"?
Does it mean the variables of it can still be read/written?
Can the startcall or the initcall still be called after stopcall?
(Important if we rely on zero initialization, which we do in many
modules).
Can IO to ports still be issued and "transactions" still be
finished after stopcall has been issued?
Thanks and Regards
Ingo Oeser
--
In der Wunschphantasie vieler Mann-Typen [ist die Frau] unsigned und
operatorvertraeglich. --- Dietz Proepper in dasr
next prev parent reply other threads:[~2001-09-23 10:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-23 6:37 [PATCH] PART1: Proposed init & module changes for 2.5 Rusty Russell
2001-09-23 7:12 ` David Cinege
2001-09-24 0:09 ` Rusty Russell
2001-09-24 3:57 ` David Cinege
2001-09-24 5:31 ` Rusty Russell
2001-09-24 8:14 ` Andrzej Krzysztofowicz
2001-09-24 9:44 ` David Cinege
2001-09-23 10:43 ` Ingo Oeser [this message]
2001-09-23 22:42 ` Rusty Russell
2001-09-24 1:01 ` Keith Owens
2001-09-24 4:35 ` Rusty Russell
2001-09-24 4:54 ` Keith Owens
2001-09-24 5:40 ` 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=20010923124336.D30515@nightmaster.csn.tu-chemnitz.de \
--to=ingo.oeser@informatik.tu-chemnitz.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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.