mapping ioremap address to user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI,

How do i map the virtual address returned by ioremap() call to 
user
space? The device driver book says we can use remap_page_range on 
this
address. But don't we need to pass a physical address as an 
argument
rather than the address returned by ioremap?
Any pointer on this?
And one more thing, can we just derefernce the mapped address in 
the
application space as normal *(Address + offset).

Any inputs on this is greatly appreciated.

Rgds
Anand


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux