Sharing memory between two kernel module - Better approach

Abhinav Misra abhitheextremeeng at gmail.com
Thu Aug 2 13:42:23 EDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180802/f1718b13/attachment.html>


More information about the Kernelnewbies mailing list