Hi,

I want to know is there any alternative for sharing the memory between two
modules.

The approach which I can think of is taking a global pointer, using kmalloc
and assigning
start of memory to the global pointer and then in 2nd module use extern for
using the same
pointer.

Is there any better way of doing the same ?

BR, Abhinav
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to