linux driver how to mmap many kernel address to user space
current scenario is:
user mode need some system memory, but these memory need to be allocated in kernel mode, user mode use mmap call to map these kernel address to user mode, so driver how to implement mmap driver interface.
we should not allocate a big memory in kernel and map it once, because kernel don't know how much the memory user need.
so how to solve this problem, thanks!
|