Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|---|
| 2 | #ifndef _LINUX_MEMORY_FAILURE_H |
| 3 | #define _LINUX_MEMORY_FAILURE_H |
| 4 | |
| 5 | #include <linux/interval_tree.h> |
| 6 | |
| 7 | struct pfn_address_space; |
| 8 | |
| 9 | struct pfn_address_space { |
| 10 | struct interval_tree_node node; |
| 11 | struct address_space *mapping; |
| 12 | int (*pfn_to_vma_pgoff)(struct vm_area_struct *vma, |
| 13 | unsigned long pfn, pgoff_t *pgoff); |
| 14 | }; |
| 15 | |
| 16 | int register_pfn_address_space(struct pfn_address_space *pfn_space); |
| 17 | void unregister_pfn_address_space(struct pfn_address_space *pfn_space); |
| 18 | |
| 19 | #endif /* _LINUX_MEMORY_FAILURE_H */ |
| 20 |
Warning: This file is not a C or C++ file. It does not have highlighting.
