views:

55

answers:

1

Hello,

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

+2  A: 

You'll probably find the information you want in the proc filesystem, under /proc/self. In particular /proc/self/maps contains 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, specifically Documentation/filesystems/proc.txt.

Gilles
I guess this will have to suffice until I write my own kernel module.
gnucom