Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我可以读取文件/proc/$PID/maps,但我想知道是否有 API 来获取进程内存映射。
/proc/$PID/maps
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.
/proc/self/maps