Skip to contentSkip to conversation

Kernel page table and module text

DISCUSSION Allison 2 participants 2 messages Apr 18, 2005

lore
Share & tools
lore

Allison

author
#0 lore raw

Hi,

Since module is loaded in non-contiguous memory, there has to be an entry in the kernel page table for all modules that are loaded on the system. I am trying to find entries corresponding to my module text in the page tables.

I am not clear about how the kernel page table is organized after the system switches to protected mode.

I printed out the page starting with swapper_pg_dir . But I do not find the addresses for all the modules loaded in the system.

Do I still need to read the pg0 and pg1 pages ?

If somebody can explain how to traverse the kernel page tables, that would be very helpful.

thanks,
Allison

#1 lore raw
Quoted 2 lines · Allison

If somebody can explain how to traverse the kernel page tables, that would be very helpful.

It might help if you explained what you are trying to do...