代码改变世界

虚拟内存和虚拟地址的区别?mmap

2019-05-16 10:12  乘着风去破浪  阅读(771)  评论(0)    收藏  举报

虚拟内存和虚拟地址的区别?
这个影响我对mmap的理解
mmap是什么?是(进程内创建一个虚拟地址空间,就可以绕过用户内存和内核内存的拷贝,进行直接访问): mmap() creates a new mapping in the virtual address space of the
calling process. The starting address for the new mapping is
specified in addr. The length argument specifies the length of the
mapping (which must be greater than 0).
具体见:http://www.man7.org/linux/man-pages/man2/mmap.2.html