Writing Module in kernel...

From: Deepika Kakrania (deepika@sasken.com)
Date: Tue Aug 28 2001 - 01:52:07 EST


 Hi,

  I have modified my kernel a little bit. For this I have modified some
of the standard files eg. ip_input.c, ip_forward.c and ip_options.c. In
addition to these 3 modified files I have my 9-10 new files. I want to
have this code as a module in kernel. I am defining a option
CONFIG_NET_MY_KERNEL for compiling this modified/new code.

The code in standard files lies in between this option

#ifdef CONFIG_NET_MY_KERNEL

 ......added code

#endif

Now the problem is that if I choose to have this code as a module(
CONFIG_NET_MY_KERNEL=m), the code in standard files won't get compiled.Isn't it?

Could anyone tell me if it is possible to have this code as a module. And
if YES, how could I go about it?

Thanks in advance.

Regards,
Deepika

--------------------------------------------------------------------------------

 Deepika Kakrania
 Sasken Communication Technologies Limited

 Phone No:(080) 5578 300 Extn:8059
                5289906 (res)
 Email: deepika@sasi.com

-
To unsubscribe from this list: 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



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:38 EST