Writing Module in kernel...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




 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


-
: 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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux