开发者

What exactly is meant by 'map memory into userspace'?

W开发者_如何学Chen memory (suppose some kernel memory buffer) is mapped into userspace, what is it that happens? Is it that the entries in the page tables of the user process's struct mm are modified so that they point to the same pages as those in the kernel's virtual address space?

Does it mean that the process's entries are mapped to corresponding kernel virtual addresses?

How is this memory mapping implemented?


There is a good explanation of this here


Is it that the entries in the page tables of the user process's struct mm are modified so that they point to the same pages as those in the kernel's virtual address space?

Yes they are. In fact, all the physical memory is already mapped into kernel address space. So that implies that whatever physical memory is given to the process as virtual memory, that memory is already mapped by the kernel. I recommend you read the Gorman book on memory management.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜