Make sure that the other driver is already
loaded into the kernel module when you are trying to load your kernel module. -- Regards, Gaurav Aggarwal From: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On
Behalf Of Konstantin Boyanov Hi list, I have a simple question - I want to use some functions in my driver
code, which are defined and declared in another driver. What should I do in
order to achieve this? Do the external functions have to be implemented in a
specific way? I tried to add to my code something like: extern int function_name(arg1, arg2);
//exactly as it appears in original definition and used this function a couple of times, but afther that when loading
the module I get an error like: my_driver: Unknown symbol function_name I guess my_driver doesn't see the functions by some reason, or these
are not exported to the kernel symbols at all. Any suggestions? With best regards, Konstantin Boyanov P.S. Right now I'm going through LDD3 by Rubini, It would be nice if
somebody directs me to a particular part of the book that discusses similar
issues. |