Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: add kernel-doc comment for free_pgd_range()

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>

authored by

SoumishDas and committed by
Andrew Morton
f4d1c324 ec9827cd

+11 -2
+11 -2
mm/memory.c
··· 278 278 p4d_free_tlb(tlb, p4d, start); 279 279 } 280 280 281 - /* 282 - * This function frees user-level page tables of a process. 281 + /** 282 + * free_pgd_range - Unmap and free page tables in the range 283 + * @tlb: the mmu_gather containing pending TLB flush info 284 + * @addr: virtual address start 285 + * @end: virtual address end 286 + * @floor: lowest address boundary 287 + * @ceiling: highest address boundary 288 + * 289 + * This function tears down all user-level page tables in the 290 + * specified virtual address range [@addr..@end). It is part of 291 + * the memory unmap flow. 283 292 */ 284 293 void free_pgd_range(struct mmu_gather *tlb, 285 294 unsigned long addr, unsigned long end,