ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] kernel function exporting to use in module?


From: Krzysztof Stankiewicz
Subject: [Ltib] kernel function exporting to use in module?
Date: Tue, 24 May 2011 14:16:36 +1000

inside a kernel file I've added a new function

static int dosomething(int parm)
{
       return 1;

}

EXPORT_SYMBOL_NOVERS(dosomething);

(also tried EXPORT_SYMBOL and without static keyword)

then in my module which is also compiled by ltib i have

extern int dosomething(int parm);

and using it as

dosomething(1);

but when the whole thing compiles I get
ERROR: "dosomething" [drivers\somefile.ko] undefined!

my questions is what am i doing wrong and how can i get it to try to link my module with that function when I inmod it?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]