Hi,
I am trying to add some functionality to the existing kernel code.
I need my initialiser routine to be executed at boot time. Since
my functionality is related to forwarding tables (of a network
processor) I am considering the idea to adding my initialiser in
the __init inet_init() function (af_inet.c). Since this function
goes in the initcall.init section, so it should do the job.
I tried to add some code in the inet_init (), but some how the new
code added doesn't execute. Later I removed the function call and
added just a printk(); just after the
printk(KERN_INFO "NET4: Linux TCP/IP 1.0 for NET4.0\n");
in inet_init(), but even this doen't work. I checked the af_inet.o
to see my added string (of my printk)in the obj file, it does
exist, but I am unable to see the output in the /var/log/messages
!!
regards,
Hoobastang
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html