I have two Linux kernel modules (*.ko files). They have circular dependencies like this:
mod1.ko uses functions exported by mod2.ko
mod2.ko uses functions exported by mod1.ko
I can't merge the modules into single module. How do i write the modules such that I can insert mod1 first and then mod2 without any error.