lkml.org 
[lkml]   [2005]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Newbie: added function not visible
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-29 19:27    [W:0.492 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site