pagewalk.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) pagewalk.c (e8b098fc5747a7c871f113c9eb65453cc2d86e6f)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/mm.h>
3#include <linux/highmem.h>
4#include <linux/sched.h>
5#include <linux/hugetlb.h>
6
7static int walk_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
8 struct mm_walk *walk)

--- 244 unchanged lines hidden (view full) ---

253 } else
254 err = walk_pgd_range(start, end, walk);
255
256 return err;
257}
258
259/**
260 * walk_page_range - walk page table with caller specific callbacks
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/mm.h>
3#include <linux/highmem.h>
4#include <linux/sched.h>
5#include <linux/hugetlb.h>
6
7static int walk_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end,
8 struct mm_walk *walk)

--- 244 unchanged lines hidden (view full) ---

253 } else
254 err = walk_pgd_range(start, end, walk);
255
256 return err;
257}
258
259/**
260 * walk_page_range - walk page table with caller specific callbacks
261 * @start: start address of the virtual address range
262 * @end: end address of the virtual address range
263 * @walk: mm_walk structure defining the callbacks and the target address space
261 *
262 * Recursively walk the page table tree of the process represented by @walk->mm
263 * within the virtual address range [@start, @end). During walking, we can do
264 * some caller-specific works for each entry, by setting up pmd_entry(),
265 * pte_entry(), and/or hugetlb_entry(). If you don't set up for some of these
266 * callbacks, the associated entries/pages are just ignored.
267 * The return values of these callbacks are commonly defined like below:
268 *

--- 87 unchanged lines hidden ---
264 *
265 * Recursively walk the page table tree of the process represented by @walk->mm
266 * within the virtual address range [@start, @end). During walking, we can do
267 * some caller-specific works for each entry, by setting up pmd_entry(),
268 * pte_entry(), and/or hugetlb_entry(). If you don't set up for some of these
269 * callbacks, the associated entries/pages are just ignored.
270 * The return values of these callbacks are commonly defined like below:
271 *

--- 87 unchanged lines hidden ---