Clarification on memory mapping

Prashant Shah pshah.mumbai at
Wed Jun 1 13:38:37 EDT 2011


On Wed, Jun 1, 2011 at 12:04 PM, sandeep kumar
<coolsandyforyou at> wrote:
> Hi,
> ioremap() :
> 2) ioremap does mapping of a particular i/o device to kernel logical memory
> address.

Please correct me if I am wrong.

I think this function will remap the I/O registers location to a
memory location, so instead of using inb/outb you can use the memory
based functions like readb/writeb.

eg : lets say I want to read from I/O port 0x80. I will have to use
the inb() function. Now if I ioremap() it to a memory location it I
can use the readb() instead.

More information about the Kernelnewbies mailing list