Results 1 to 2 of 2
When I read this static inline function native_pte_clear in pgtable-3level.h for x86 arch, why this function has unnecessary parameters mm_struct and unsigned long? Thanks.
/*
* For PTEs and PDEs, ...
- 11-03-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 2
Why unnecessary parameters passed in native_pte_clear
When I read this static inline function native_pte_clear in pgtable-3level.h for x86 arch, why this function has unnecessary parameters mm_struct and unsigned long? Thanks.
/*
* For PTEs and PDEs, we must clear the P-bit first when clearing a page table
* entry, so clear the bottom half first and enforce ordering with a compiler
* barrier.
*/
static inline void native_pte_clear(struct mm_struct *mm, unsigned long addr,
pte_t *ptep)
{
ptep->pte_low = 0;
smp_wmb();
ptep->pte_high = 0;
}
- 11-06-2010 #2Just Joined!
- Join Date
- Nov 2010
- Posts
- 2
Even though it is inline.


Reply With Quote