Is there a memory mapping api on windows platform, just like mmap() on linux?

Depends on what exactly you want to use it for. If you want to map existing files into memory, that’s supported with memory-mapped files. They can also be used to share memory between processes (use named mapping object with no underlying file).
If you want to map physical memory, that’s generally not supported from user mode, although there are some tricks.

Leave a Comment