I am trying to mmap some memory b/w user space and kernel space so that I can use it as a shared memory area.
I tried a sample code from internet in which the following functions were used.
2. remap_page_range(start, page, PAGE_SIZE, PAGE_SHARED))
and an include file #include <linux/wrapper.h> was used.
If I compile the same code for imx6 i am getting <linux/wrapper.h> - no such file error , if I am not including the file - i am getting an error - implicit declaration of remap_page_range()
Please let me know which include i have to use to eliminate the error or is there any better way to mmap some memory between user and kernel space.
Thanks in advance.