summaryrefslogtreecommitdiff
path: root/mm/pagewalk.c
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2022-08-22 16:02:36 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-09-12 06:26:00 +0300
commit8bd3873d1bff1d7b761949deaccc3b527bffa1e3 (patch)
treec586477ce76256b87207a73b357dfe64d54ccff2 /mm/pagewalk.c
parente2f8f44b7686bf65747f485ac7c9c43de8b8de09 (diff)
downloadlinux-8bd3873d1bff1d7b761949deaccc3b527bffa1e3.tar.xz
mm: pagewalk: add api documentation for walk_page_range_novma()
Link: https://lkml.kernel.org/r/8991525.CDJkKcVGEf@devpool047 Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/pagewalk.c')
-rw-r--r--mm/pagewalk.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mm/pagewalk.c b/mm/pagewalk.c
index 9b3db11a4d1d..908ec1577f40 100644
--- a/mm/pagewalk.c
+++ b/mm/pagewalk.c
@@ -479,7 +479,15 @@ int walk_page_range(struct mm_struct *mm, unsigned long start,
return err;
}
-/*
+/**
+ * walk_page_range_novma - walk a range of pagetables not backed by a vma
+ * @mm: mm_struct representing the target process of page table walk
+ * @start: start address of the virtual address range
+ * @end: end address of the virtual address range
+ * @ops: operation to call during the walk
+ * @pgd: pgd to walk if different from mm->pgd
+ * @private: private data for callbacks' usage
+ *
* Similar to walk_page_range() but can walk any page tables even if they are
* not backed by VMAs. Because 'unusual' entries may be walked this function
* will also not lock the PTEs for the pte_entry() callback. This is useful for