public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rodrigo Rubira Branco (BSDaemon)" <rodrigo@kernelhacking.com>
To: linux-newbie@vger.kernel.org
Subject: Re: kernel module
Date: Tue, 13 Nov 2007 10:33:18 -0000	[thread overview]
Message-ID: <20071113123318.7F5588BFD3@mail.fjaunet.com.br> (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 <rajeshkuri@gmail.com>
Para: Kristof Provost <Kristof@provost-engineering.be>
Cópia: linux-newbie@vger.kernel.org
Assunto: Re: kernel module
Data: 13/11/07 09:13

>
> 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
&lt;Kristof@provost-engineering.be&gt; wrote:
> &gt; Hi,
> &gt;
> &gt; On 2007-11-12 19:29:17 (+0530), Rajeh kuri
&lt;rajeshkuri@gmail.com&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
> &gt; &gt; its function from kernel, and hence i modified the kernel source
to
> &gt; &gt; call this function and then compiled the kernel. Now the problem
is
> &gt; &gt; obliviously 'linker cannot resolve the symbol. Because I'm
trying to
> &gt; &gt; call the function which is available only after I insert the
kernel
> &gt; &gt; module.
> &gt; The problem is that you're calling code compiled as a module from
code
> &gt; compiled into the kernel. That means you either compile both parts as
a
> &gt; module, or compile both of them into the kernel.
> &gt; Kbuild/Kconfig has supports this type of dependency because it's
quite
> &gt; common.
> &gt;
> &gt; Kristof
> &gt;
> -
> To unsubscribe from this list: send the line &quot;unsubscribe
linux-newbie&quot; in
> the body of a message to majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

             reply	other threads:[~2007-11-13 10:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-13 10:33 Rodrigo Rubira Branco (BSDaemon) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-12 13:59 kernel module Rajeh kuri
2007-11-13  9:40 ` Kristof Provost
2007-11-13 12:23   ` Rajeh kuri
2007-11-13 14:06     ` Kristof Provost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071113123318.7F5588BFD3@mail.fjaunet.com.br \
    --to=rodrigo@kernelhacking.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox