How to load a kernel module twice?
I've programmed a kernel module which connects to another kernel module with a certain load parameter and manages data between that kernel module and user space accessible shared memory.
For different devices there are different shared memories and different parameter values while talking to the another kernel module.
I've designed my module to work just with one device and one associated shared memory, but the problem is, I may not load the module more than once with the same name.
If I do compile the source twice, original and via a soft link (ln -s a.c b.c), the resulting a.ko, b.ko are loadable and working at the same time because everything in there is private.
So the final question is:
Is there a normal way to make a kernel module loadable more than once?