Can anyone suggest some learning materials to accomplish my question? I’m working with the Linux kernel.
I’m planning on conducting an experiment, but need access to my process’ page table, and so far have only found kernel space code to accomplish what I want.
Thanks
You’ll probably find the information you want in the proc filesystem, under
/proc/self. In particular/proc/self/mapscontains the list of memory mappings in the process, with an indication of their permission and file when applicable. There is a little more information in/proc/self/smaps. You’ll have to look in the kernel documentation for the format, specificallyDocumentation/filesystems/proc.txt.