• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

What is ioremap()

by admin

ioremap() function is used to map the physical addres of an I/O device to the kernel virtual address. Kernel creates a page table i.e mapping of virtual address to the physical address requested.When we do iounmap() this mapping is destroyed.

The ioremap function takes two parameters:

  • start of the memory region
  • size of the memory region
void *ioremap(unsigned long phys_addr, unsigned long size);

void iounmap(void * addr)

phys_addr is required only if physical memory areas described by a physical address are mapped with ioremap. This information is held in phys_addr.

On many systems, I/O memory is not directly accessible in this way at all. So a mapping must be set up first. This is the role of the ioremap function. The function is designed specifically to assign virtual addresses to I/O memory regions.

Filed Under: Linux

Some more articles you might also be interested in …

  1. Downloading a Specific Version of Package and Its Dependencies from Repository for Offline Installation Using YUM
  2. How to Install NTP Service and Client in CentOS/RHEL 8
  3. Xtreme Download Manager(xdman): Internet Download Manager(IDM) For Ubuntu
  4. How to configure VNC Server on CentOS/RHEL 6
  5. duperemove: command not found
  6. esearch Command Examples in Linux
  7. Rabbitmq install and management
  8. lvremove Command Fails With Error “LVM – Can’t remove open logical volume”
  9. CIFS Share Filesystem Is Not Mounted after Reboot on CentOS/RHEL 7
  10. pkill Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright