You will have to specify the following in the Makefile to enforce
dependency.
obj-m := load1.o load2.o
You do not have to club all of the code into one main file for this
thing. You should be fine using a Makefile.
Dinesh
Kamal gupta wrote:
Hi
How can we load files that are interdependent upon each other. I am
using modprobe but it fails saying LOOP DETECTED. Do I need to club all
of my code in one file or there is some alternative ?
Thanks in advance
--
Kamal Kant Gupta
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ