Re: Newbie: added function not visible

From: Robert Love
Date: Wed Jun 29 2005 - 12:24:07 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/