Skip to contentSkip to conversation

kernel module

DISCUSSION Rodrigo Rubira Branco (BSDaemon) 1 participant 1 message Nov 13, 2007

lore
Share & tools
lore
#0 lore raw

Export the symbol in the kernel and then hook it in your module ;)

cya,

Rodrigo (BSDaemon).

--
http://www.kernelhacking.com/rodrigo

Kernel Hacking: If i really know, i can hack

GPG KeyID: 1FCEDEA1

--------- Mensagem Original --------
De: Rajeh kuri <[email protected]>
Para: Kristof Provost <[email protected]> Cópia: [email protected]
Assunto: Re: kernel module
Data: 13/11/07 09:13

Quoted 11 lines

Well it means there is no way to achieve compiled kernel calling compiled kernel module. OR The direction of communication from kernel to kernel module can not be possible?

I believe there must be a way around to get this work. If i find it will update here.

--Regards,
rajesh
On Nov 13, 2007 3:10 PM, Kristof Provost

Quoted 3 lines · &lt;[email protected]&gt; wrote:

&gt; Hi,
&gt;
&gt; On 2007-11-12 19:29:17 (+0530), Rajeh kuri

Quoted 8 lines · &lt;[email protected]&gt; wrote:

&gt; &gt; Hi,
&gt; &gt;
&gt; &gt; Is there any ways to invoke/call the function (kernel module &gt; &gt; functions) from compiled base kernel. Well that statement sounds &gt; &gt; strange.
&gt; &gt;
&gt; &gt; I will try to simplify that statement, with problem I faced. &gt; &gt; I have written a kernel module but it is of no use till I call

one of

Quoted 1 line

&gt; &gt; its function from kernel, and hence i modified the kernel source

to

Quoted 1 line

&gt; &gt; call this function and then compiled the kernel. Now the problem

is

Quoted 1 line

&gt; &gt; obliviously 'linker cannot resolve the symbol. Because I'm

trying to

Quoted 1 line

&gt; &gt; call the function which is available only after I insert the

kernel

Quoted 2 lines

&gt; &gt; module.
&gt; The problem is that you're calling code compiled as a module from

code

Quoted 1 line

&gt; compiled into the kernel. That means you either compile both parts as

a

Quoted 2 lines

&gt; module, or compile both of them into the kernel.
&gt; Kbuild/Kconfig has supports this type of dependency because it's

quite

Quoted 6 lines

&gt; common.
&gt;
&gt; Kristof
&gt;
-
To unsubscribe from this list: send the line &quot;unsubscribe

linux-newbie&quot; in

Quoted 7 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

________________________________________________
Message sent using UebiMiau 2.7.2

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs