c - change the page to write protected -


i'm doing project in linux kernel , want find/write function in kernel takes struct page , change write protected.

i found function, takes pte of page , changes page wrprotect:

static inline pte_t pte_wrprotect(pte_t pte) 

(in x86/include/asm/pgtable)

but don't know how pte_t of page struct page. searched in documentation of struct, didn't find.

can explain me how pte_t of page struct page?

thanks


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -