I've looked at the kernel sources and this function realy doesn't
exists. I found a function that is called pte_offset_kernel. Should I
use this one instead? I tried to and it seemed to work but I have what
seems to be a deadlock problem when accesing this shared memory from a
user space program so I don't know if these issues are related or not.
This brings me to my second problem - the deadlock. I'm using the
shared memory to pass Data between the driver and a userspace program.
When doing extensive usage of this shared memory the hole system get
stuck and it seems to be related to a swaping activity that starts to
be done. I'm not sure weather my mmap code it good or not. Does anyone
can point me to a well tested mmap code that map very large amount of
10x in advance,