MmMapIoSpace
MmMapIoSpace is a Windows kernel-mode routine that maps a physical address range into the system's virtual address space. It is used by device drivers to access memory-mapped I/O (MMIO) regions or other hardware memory directly from the kernel.
Signature and behavior: PVOID MmMapIoSpace(PHYSICAL_ADDRESS PhysicalAddress, SIZE_T NumberOfBytes, MEMORY_CACHING_TYPE CacheType); The function returns a pointer to
Usage: A driver calls MmMapIoSpace with the device’s physical address and the size of the MMIO region
Notes and considerations: The provided physical address should correspond to a documented I/O memory region for
Related: MmUnmapIoSpace, MmMapLockedPagesSpecifyCache, MmMapIoSpaceEx.