3

我知道我可以读取文件/proc/$PID/maps,但我想知道是否有 API 来获取进程内存映射。

4

1 回答 1

1

There is no API in kernel to get this information in 1 syscall. The only universal way is to read and parse a /proc/self/maps file.

于 2011-02-22T11:40:27.193 回答