Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / kernel / kexec_internal.h
blob39d30ccf8d8798c1113ea70889ea106ecb25ad1f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_KEXEC_INTERNAL_H
3 #define LINUX_KEXEC_INTERNAL_H
5 #include <linux/kexec.h>
7 struct kimage *do_kimage_alloc_init(void);
8 int sanity_check_segment_list(struct kimage *image);
9 void kimage_free_page_list(struct list_head *list);
10 void kimage_free(struct kimage *image);
11 int kimage_load_segment(struct kimage *image, struct kexec_segment *segment);
12 void kimage_terminate(struct kimage *image);
13 int kimage_is_destination_range(struct kimage *image,
14 unsigned long start, unsigned long end);
16 int machine_kexec_post_load(struct kimage *image);
18 extern struct mutex kexec_mutex;
20 #ifdef CONFIG_KEXEC_FILE
21 #include <linux/purgatory.h>
22 void kimage_file_post_load_cleanup(struct kimage *image);
23 extern char kexec_purgatory[];
24 extern size_t kexec_purgatory_size;
25 #else /* CONFIG_KEXEC_FILE */
26 static inline void kimage_file_post_load_cleanup(struct kimage *image) { }
27 #endif /* CONFIG_KEXEC_FILE */
28 #endif /* LINUX_KEXEC_INTERNAL_H */