On 02-Jul-98 Richard van den Berg wrote:
> I am stuck with __initfunc(), trying to make the ethernet driver more
> talkative while booting I didn't succeed. So I replaced it with these
> lines of code:
> __initfunc(void my_test(void))
> printk("see if this shows up\n");
> return 0;
> It compiles with "declance.c:4: warning: return-type defaults to `int'"
> and gets nicely archived and linked but doesn't show up when booting. My
> question is what likes __initfunc() to see to behave decently?
Like Ralf already said: __initfunc(...) just puts the following code into a
special text section which gets freed after initialization. This has nothing to
do with the circumstances under which your code is beeing called.
If you want to do some experiments with a net driver you may want to edit
Hope this helps.