Mapping

Systems that use an MMU may offer an API that lets processes ask to have blocks of physical memory mapped into their address space. The most general version of this mechanism lets a process specify the address of the physical memory, the size of the mapped region, and the virtual address it should be mapped to.

The RawMemoryAccess class includes methods that access these mapping mechanisms. Since these cannot be supported with MMU hardware and may not be supported by the operating system even when an MMU is present, the mapping methods in RawMemoryAccess should only be used in code that is clearly platform dependent.

  • public long getMappedAddress( )

    This method returns the virtual address where the memory mapped by this raw memory access ...

Get Real-Time Java™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.