IOMemoryMap
IOMemoryMap is a memory mapping object in Apple's IOKit framework. It represents a region of memory that has been mapped into a caller's address space, typically created to expose device memory to user space or to support driver-internal DMA operations. The map is derived from an IOMemoryDescriptor through IOKit’s mapping interfaces. It records the base virtual address and the length of the mapped region and provides access to the mapped memory for the client or kernel code. The object manages the lifetime of the mapping and ensures proper synchronization and cache handling across unmapping or dereferencing.
Usage of IOMemoryMap centers on gaining access to a device or system memory region associated with a
Access and safety considerations are important: interacting with mapped memory requires respecting alignment, size, and boundary