Is there a Linux API for gathering information about mmap'ed regions?
I know I can read the file /proc/$PID/maps
, but I was wondering if there is an A开发者_运维百科PI to get process memory mappings.
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.
精彩评论