Unable to enable or use the internuclear module (s)

I have a function in kernel 1 driver (KD1.ko):

static void test (void);
EXPORT_SYMBOL(test);

static void test() {
    printk("<<< MISSION DONE >>>.\n");
}

In kernel 2 driver (KD2.ko):

extern static void test (void);

which I tried to name.

I managed to embed KD1.ko, but I could not insert KD2.ko. Did I miss something?

+3
source share
1 answer

test() static.

therefore, you cannot export static functions.

http://osdir.com/ml/linux.kernel.kernelnewbies/2003-02/msg00149.html

+4
source

All Articles