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

前端 未结 1 796
说谎
说谎 2020-12-05 23:10

Is there an api to do memory mapping, just like

mmap()

on linux?

相关标签:
1条回答
  • 2020-12-05 23:26

    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.

    0 讨论(0)
提交回复
热议问题