login
Header Space

 
 

Modifying a processes page table entries

December 25, 2005 - 9:39am
Submitted by chirag_jog on December 25, 2005 - 9:39am.
Linux

I am trying to modify the page table entries such that the protections of its virtual memory areas and its pages be different !!
I am not sure , but is it possible ?

I tried doing so by access the pgd in the mm_Struct and then using pgd_offset
and pte_index;
After that i used pte_modify !!
But it did not work !!

statement is :
our_pte= (pgd_offset(p->mm,linear_add))->pgd + pte_offset(linear_add);
and then pte_modify(our_pte,some protection);
but this doesnot work !!

Please suggest some help !!

speck-geostationary