]>
Commit | Line | Data |
---|---|---|
a43cac0d DY |
1 | #ifndef LINUX_KEXEC_INTERNAL_H |
2 | #define LINUX_KEXEC_INTERNAL_H | |
3 | ||
4 | #include <linux/kexec.h> | |
5 | ||
6 | struct kimage *do_kimage_alloc_init(void); | |
7 | int sanity_check_segment_list(struct kimage *image); | |
8 | void kimage_free_page_list(struct list_head *list); | |
9 | void kimage_free(struct kimage *image); | |
10 | int kimage_load_segment(struct kimage *image, struct kexec_segment *segment); | |
11 | void kimage_terminate(struct kimage *image); | |
12 | int kimage_is_destination_range(struct kimage *image, | |
13 | unsigned long start, unsigned long end); | |
14 | ||
15 | extern struct mutex kexec_mutex; | |
16 | ||
17 | #ifdef CONFIG_KEXEC_FILE | |
40c50c1f | 18 | #include <linux/purgatory.h> |
a43cac0d | 19 | void kimage_file_post_load_cleanup(struct kimage *image); |
e2ae8ab4 KC |
20 | extern char kexec_purgatory[]; |
21 | extern size_t kexec_purgatory_size; | |
a43cac0d DY |
22 | #else /* CONFIG_KEXEC_FILE */ |
23 | static inline void kimage_file_post_load_cleanup(struct kimage *image) { } | |
24 | #endif /* CONFIG_KEXEC_FILE */ | |
25 | #endif /* LINUX_KEXEC_INTERNAL_H */ |