Skip to contentSkip to conversation

Iner Module Communications

DISCUSSION vinolin 1 participant 1 message Mar 13, 2002

lore
Share & tools
lore

vinolin

author
#0 lore raw
Quoted 11 lines · Robert Love

You can call functions and touch data in other functions ... the kernel image, even with modules, is one big flat monolithic model.

You will probably want to EXPORT_SYMBOL the functions and variables you want to touch ... see other modules. But basically you can access anything that is exported once your module is linked.

Carefully consider _why_ you need "inter-module communication", though... and design to those (hopefully proper) goals.

Robert Love

Thanks Robert.
Actually i'm trying to segregate IP and ICMP from the linux stack. Thogh i do insmod of IP as well as ICMP, i'm having the linux stack as well. In this case, if i do EXPORT_SYMBOL,
the LKM ICMP module can refer the IP module instead of refering LKM IP
module. But i want the LKM ICMP communicate to LKM IP only, not the kernel's IP.

Is EXPORT_SYMBOL the only way to solve this ? Any other idea ?

Thanks,
Vinolin.