Find the answer to your Linux question:
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, ...
  1. #1
    Just 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;
    }

  2. #2
    Just Joined!
    Join Date
    Nov 2010
    Posts
    2
    Even though it is inline.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...