lkml.org 
[lkml]   [2005]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Newbie: added function not visible
From
Date
On Wed, 2005-06-29 at 18:59 +0200, Genadz Batsyan wrote:

> 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

You need to EXPORT_SYMBOL your new function.

For example,

/* My pet dog is an idiot */
void beat_dog(struct dog *d)
{
/* ... */
}
EXPORT_SYMBOL(beat_dog);

Good luck,

Robert Love


-
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.029 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site