File Index
Files and directories
Sign in
FILE

memory-failure.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/memory-failure.h C
 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
 7struct pfn_address_space;
 8
 9struct 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
16int register_pfn_address_space(struct pfn_address_space *pfn_space);
17void unregister_pfn_address_space(struct pfn_address_space *pfn_space);
18
19#endif /* _LINUX_MEMORY_FAILURE_H */
~/ Read-only file preview.