I know that this question was asked but I still could not extract any useful answer. I would be thankful if one can provide not too much complicated answer since my linux background isn't so deep. The reason I need to work with physically contiguous frames in userspace is that I'm working with hardware device and I'm simulating this device's driver in userspace, while there is a thin layer of driver which I should use. One of the simplest suggestions I got was to allocate in the kernel layer of the driver using get_free_pages and then somehow using mmap to make this memory usable in the userspace. Can you please elaborate and explain this suggestion? or of course propose any other (simple) solutions?
Thank you