提交 0f157a5b 编写于 作者: A Andrew Morton 提交者: Linus Torvalds

include/linux/mm.h: complete the mm_walk definition

That nameless-function-arguments thing drives me batty.  Fix.

Cc: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b070e65c
...@@ -951,13 +951,19 @@ void unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *start_vma, ...@@ -951,13 +951,19 @@ void unmap_vmas(struct mmu_gather *tlb, struct vm_area_struct *start_vma,
* (see walk_page_range for more details) * (see walk_page_range for more details)
*/ */
struct mm_walk { struct mm_walk {
int (*pgd_entry)(pgd_t *, unsigned long, unsigned long, struct mm_walk *); int (*pgd_entry)(pgd_t *pgd, unsigned long addr,
int (*pud_entry)(pud_t *, unsigned long, unsigned long, struct mm_walk *); unsigned long next, struct mm_walk *walk);
int (*pmd_entry)(pmd_t *, unsigned long, unsigned long, struct mm_walk *); int (*pud_entry)(pud_t *pud, unsigned long addr,
int (*pte_entry)(pte_t *, unsigned long, unsigned long, struct mm_walk *); unsigned long next, struct mm_walk *walk);
int (*pte_hole)(unsigned long, unsigned long, struct mm_walk *); int (*pmd_entry)(pmd_t *pmd, unsigned long addr,
int (*hugetlb_entry)(pte_t *, unsigned long, unsigned long next, struct mm_walk *walk);
unsigned long, unsigned long, struct mm_walk *); int (*pte_entry)(pte_t *pte, unsigned long addr,
unsigned long next, struct mm_walk *walk);
int (*pte_hole)(unsigned long addr, unsigned long next,
struct mm_walk *walk);
int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
unsigned long addr, unsigned long next,
struct mm_walk *walk);
struct mm_struct *mm; struct mm_struct *mm;
void *private; void *private;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册