Blame view
include/linux/ptdump.h
567 Bytes
30d621f67
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_PTDUMP_H #define _LINUX_PTDUMP_H #include <linux/mm_types.h> struct ptdump_range { unsigned long start; unsigned long end; }; struct ptdump_state { |
f8f0d0b6f
|
14 |
/* level is 0:PGD to 4:PTE, or -1 if unknown */ |
30d621f67
|
15 |
void (*note_page)(struct ptdump_state *st, unsigned long addr, |
99395ee3f
|
16 |
int level, u64 val); |
1494e0c38
|
17 |
void (*effective_prot)(struct ptdump_state *st, int level, u64 val); |
30d621f67
|
18 19 |
const struct ptdump_range *range; }; |
e47690d75
|
20 |
void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd); |
30d621f67
|
21 22 |
#endif /* _LINUX_PTDUMP_H */ |