I have mapped a device '/dev/nds/surface3 ' into user address space.That's the mapping which i see in /proc/self/maps.
---
298a4000-298f9000 rw-s 00000000 00:0b 58425601 /dev/nds/surface3
--
later on when user give that user address '298a4000' to another device ( this device doesn't know the physical address for this user space address).This second device need to convert that user address to kernel address so that it can write to the corresponding kernel space.
I don't wanna do copy_from_user or copy_to_user becoz it's a big chunk of memory.Moreover this is already allocated in kernel and i wanna work on the same chunk of memory.
Thanks
-manisha
On 8/23/06, Rik van Riel <riel@xxxxxxxxxxx> wrote:
Manisha Maheshwari wrote:
> Hi all,
>
> I am trying to convert user virtual address to kernel virtual address
> using get_user_pages.
>
> But i am gettin the worng kernel virtual address.
> what function should i use to do his conversion??
You should not need address conversion. You can directly
pass the user virtual address to copy_from_user or copy_to_user
and the right thing will happen.
--
What is important? What you want to be true, or what is true?