All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kristof Provost <Kristof@provost-engineering.be>
To: Rajeh kuri <rajeshkuri@gmail.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: kernel module
Date: Tue, 13 Nov 2007 10:40:52 +0100	[thread overview]
Message-ID: <20071113094052.GB10096@berith> (raw)
In-Reply-To: <c26b6f110711120559l2c9f9be3wb729a3a770b13ffd@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

Hi,

On 2007-11-12 19:29:17 (+0530), Rajeh kuri <rajeshkuri@gmail.com> wrote:
> Hi,
> 
> Is there any ways to invoke/call the function (kernel module
> functions) from compiled base kernel. Well that statement sounds
> strange.
> 
> I will try to simplify that statement, with problem I faced.
> I have written a kernel module but it is of no use till I call one of
> its function from kernel, and hence i modified the kernel source to
> call this function and then compiled the kernel. Now the problem is
> obliviously 'linker cannot resolve the symbol. Because I'm trying to
> call the function which is available only after I insert the kernel
> module.
The problem is that you're calling code compiled as a module from code
compiled into the kernel. That means you either compile both parts as a 
module, or compile both of them into the kernel.
Kbuild/Kconfig has supports this type of dependency because it's quite
common.

Kristof

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-11-13  9:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 13:59 kernel module Rajeh kuri
2007-11-13  9:40 ` Kristof Provost [this message]
2007-11-13 12:23   ` Rajeh kuri
2007-11-13 14:06     ` Kristof Provost
  -- strict thread matches above, loose matches on Subject: below --
2013-10-12  2:16 Kernel module Dilip Kumar
2013-10-12 10:19 ` Diego Sueiro
2007-11-13 10:33 kernel module Rodrigo Rubira Branco (BSDaemon)
2002-12-11 11:40 Kernel Module chinnakka.b
2002-12-11 18:11 ` rasman
2001-11-10 17:22 Femitha Majeed
2001-11-11  4:19 ` Paul Krumviede

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=20071113094052.GB10096@berith \
    --to=kristof@provost-engineering.be \
    --cc=linux-newbie@vger.kernel.org \
    --cc=rajeshkuri@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.