]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mm: add kernel-doc comment for free_pgd_range()
authorSoumishDas <soumish.das@gmail.com>
Tue, 25 Mar 2025 18:13:25 +0000 (23:43 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:48:14 +0000 (17:48 -0700)
Provide kernel-doc for free_pgd_range() so it's easier to understand what
the function does and how it is used.

Link: https://lkml.kernel.org/r/20250325181325.5774-1-soumish.das@gmail.com
Signed-off-by: SoumishDas <soumish.das@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c

index 86e7e66e3c5b8fa91597dc0591cce5b228229a28..f41fac7118baec429f787fcede18ac48d6353c18 100644 (file)
@@ -278,8 +278,17 @@ static inline void free_p4d_range(struct mmu_gather *tlb, pgd_t *pgd,
        p4d_free_tlb(tlb, p4d, start);
 }
 
-/*
- * This function frees user-level page tables of a process.
+/**
+ * free_pgd_range - Unmap and free page tables in the range
+ * @tlb: the mmu_gather containing pending TLB flush info
+ * @addr: virtual address start
+ * @end: virtual address end
+ * @floor: lowest address boundary
+ * @ceiling: highest address boundary
+ *
+ * This function tears down all user-level page tables in the
+ * specified virtual address range [@addr..@end). It is part of
+ * the memory unmap flow.
  */
 void free_pgd_range(struct mmu_gather *tlb,
                        unsigned long addr, unsigned long end,