* Iner Module Communications
@ 2002-03-13 5:45 vinolin
2002-03-13 5:53 ` Robert Love
0 siblings, 1 reply; 3+ messages in thread
From: vinolin @ 2002-03-13 5:45 UTC (permalink / raw)
To: linux-kernel
Hi Group !
Is it possible to perform inermodule communications between the LKM s?
Any idea ?
Please share with me.
Thanks,
Vinolin.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Iner Module Communications
2002-03-13 5:45 Iner Module Communications vinolin
@ 2002-03-13 5:53 ` Robert Love
0 siblings, 0 replies; 3+ messages in thread
From: Robert Love @ 2002-03-13 5:53 UTC (permalink / raw)
To: vinolin; +Cc: linux-kernel
On Wed, 2002-03-13 at 00:45, vinolin wrote:
> Is it possible to perform inermodule communications between the LKM s?
> Any idea ?
> Please share with me.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Iner Module Communications
@ 2002-03-13 8:52 vinolin
0 siblings, 0 replies; 3+ messages in thread
From: vinolin @ 2002-03-13 8:52 UTC (permalink / raw)
To: linux-kernel; +Cc: Robert Love
On Wednesday 13 March 2002 11:23, Robert Love wrote:
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-03-13 8:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-13 5:45 Iner Module Communications vinolin
2002-03-13 5:53 ` Robert Love
-- strict thread matches above, loose matches on Subject: below --
2002-03-13 8:52 vinolin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox