From: Jeff Dike <jdike@addtoit.com>
To: tyler@agat.net, user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] do_uml_initcalls
Date: Sun, 7 May 2006 10:09:56 -0400 [thread overview]
Message-ID: <20060507140956.GA3108@ccure.user-mode-linux.org> (raw)
In-Reply-To: <20060507125412.GA16519@Starbuck>
On Sun, May 07, 2006 at 02:54:12PM +0200, user-mode-linux-devel-admin@lists.sourceforge.net wrote:
> First, there's a ';' at the end of line 6 : typo error I guess.
Yup, nice spotting.
> But my point is : this function is unreadable !
It could hardly get any simpler.
> It does simply call all the functions in the ".initcall"
> section.
>
> Wouldn't it be better to call all the functions explicitely ?
No, adding an initcall now is a matter of writing it and declaring it
as an initcall, which adds one contiguous piece of code to one file.
Adding an explicit call means
writing the function
declaring it in a header so that do_uml_initcalls will see it
including that header in the file that implements the function
to ensure that the implementation and declaration are the same
adding the call to do_uml_initcalls
Aside from the extra code that requires, the calls and the
declarations would turn into a hot spot that a lot of patches change,
and hot spots are a pain when it comes to reordering patches.
> Btw, what is the difference between the initcall and init sections ?
init sections are code which are executed only during initialization
and which can be thrown out once the kernel is booted. initcall makes
the function be automatically called, init just makes it be thrown out
- you have to arrange to call it yourself.
> Because I was thinking of another problem : the modules. If some modules
> are compiled and that the init_modules functions are put in the initcall
> section, then all the modules will be loaded.
I don't think so. The init functions can only be called if they are
in the kernel's initcall section, and then they aren't modules any
more.
Jeff
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next parent reply other threads:[~2006-05-07 15:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060507125412.GA16519@Starbuck>
2006-05-07 14:09 ` Jeff Dike [this message]
2006-05-07 19:50 ` [uml-devel] do_uml_initcalls Blaisorblade
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=20060507140956.GA3108@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=tyler@agat.net \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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.