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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Konstantin
Boyanov
Sent: Tuesday, September 25, 2007 3:53 PM
To: [email protected]
Subject: Using functions declared in other driver

 

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
insmod: error inserting '/lib/modules/extra/my_driver.ko': -1 Unknown
symbol in module

 

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.

 

Reply via email to