I am trying to deliever a virtual address of global variable created in Kernel space into user space (linux).
The best way I found so far is to use remap_pfn_range() function, providing it with the physical address of my global variable, and return to the user space the mapped address.
I wander if there is a better way to do it?
Thank you in advance