谁正在映射该页面? - 反向地图

时间:2014-05-13 00:45:32

标签: linux linux-kernel linux-device-driver

此评论是从linux源代码中的mm_types.h文件中复制的:

/*
 ...
 * Each physical page in the system has a struct page associated with
 * it to keep track of whatever it is we are using the page for at the
 * moment. Note that we have no way to track which tasks are using
 * a page, though if it is a pagecache page, rmap structures can tell us
 * who is mapping it.
 ...
 */

所以,我的问题是如何在评论中找到引用或映射特定物理页面的进程?那些可以做到这一点的功能是什么?

谢谢大家。

1 个答案:

答案 0 :(得分:1)

新手方法:扫描每个流程图并查看它在物理上的映射位置。

本文有更多线索http://lwn.net/Articles/23732/