Hi all,
I was looking at the initialization code of UML and I found the function
do_uml_initcalls :
1: static __init void do_uml_initcalls(void)
2: {
3: initcall_t *call;
4:
5: call = &__uml_initcall_start;
6: while (call < &__uml_initcall_end){;
7: (*call)();
8: call++;
9: }
First, there's a ';' at the end of line 6 : typo error I guess.
But my point is : this function is unreadable !
It does simply call all the functions in the ".initcall"
section.
Wouldn't it be better to call all the functions explicitely ?
Btw, what is the difference between the initcall and init sections ?
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.
That was just some thoughts :p
--
tyler
[EMAIL PROTECTED]
___________________________________________________________________________
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et
suivez l'actualité en temps réel.
Rendez-vous sur http://fr.yahoo.com/set
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel