mmap() 使用进程虚拟内存布局的哪一部分?
mmap()函数应在进程虚拟地址空间和设备文件或物理内存区域之间建立映射。
进程虚拟内存布局具有以下部分:
> >进程虚拟地址空间mmap()用于映射吗?
The mmap() function shall establish a mapping between a process virtual address space and a device file or physical memory region.
A process virtual memory layout has the following sections:
Which region of Process Virtual Address Space does mmap() use for mapping?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Mmap 使用“未分配的内存”。
请注意,您绘制的图片不太可能在任何 30 年以下的 UNIX 系统上使用。 UNIX使用在 70 年代初确实有这种内存布局,但现在情况要复杂得多,特别是在使用共享库时。
Mmap uses "unallocated memory".
Please note that the picture you drew is unlikely to be used on any UNIX system that is younger than about 30 years. UNIX used do have that memory layout in the early 70s, but the picture is much more complicated nowdays, especially when using shared libraries.
要了解今天发生的情况,请
在我的机器上尝试(在 Linux 上)以下命令,它现在
显示了执行 cat 命令的进程的内存映射。
To get an insight of what is happenning today, try (on Linux) the following command
on my machine, it gives now
It shows the memory map of the process executing the
cat
command.