The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: randy_dunlap <rdunlap@xenotime.net>
To: Genadz Batsyan <gbatyan@gmx.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Newbie: added function not visible
Date: Wed, 29 Jun 2005 10:10:21 -0700	[thread overview]
Message-ID: <20050629101021.576f74f5.rdunlap@xenotime.net> (raw)
In-Reply-To: <200506291859.04965.gbatyan@gmx.net>

On Wed, 29 Jun 2005 18:59:04 +0200 Genadz Batsyan wrote:

| I'm desperate, please help, if I'm missing something obvious.
| 
| I am trying to add a function to the file drivers/char/keyboard.c
| and then be able to call this function from my kernel module
| 
| adding the function to keyboard.c, recompiling and booting with kernel
| results  /proc/kallsyms telling me that my function exists with the tag 'T',
| which I think is ok

also add:
EXPORT_SYMBOL(new_symbol); /* whatever the new entry point is */

That makes it visible to modules.

| In my module I simply declare the function's prototype and use it.
| 
| When trying to compile the module, modpost tells that the function's symbol
| is not found. (insmodding results in error too)
| 
| I don't get it, WHY tha heck can it find all the other stuff and 
| what makes this new function different? I have read that 2.6 kernel exports
| any non-static symbols.


---
~Randy

  reply	other threads:[~2005-06-29 17:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29 16:59 Newbie: added function not visible Genadz Batsyan
2005-06-29 17:10 ` randy_dunlap [this message]
2005-06-29 17:15 ` Robert Love

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=20050629101021.576f74f5.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=gbatyan@gmx.net \
    --cc=linux-kernel@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