blob: e4392a698ad4a3c269d997708ae6447190e85ea0 [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001#ifndef LINUX_KEXEC_INTERNAL_H
2#define LINUX_KEXEC_INTERNAL_H
3
4#include <linux/kexec.h>
5
6struct kimage *do_kimage_alloc_init(void);
7int sanity_check_segment_list(struct kimage *image);
8void kimage_free_page_list(struct list_head *list);
9void kimage_free(struct kimage *image);
10int kimage_load_segment(struct kimage *image, struct kexec_segment *segment);
11void kimage_terminate(struct kimage *image);
12int kimage_is_destination_range(struct kimage *image,
13 unsigned long start, unsigned long end);
14
15extern struct mutex kexec_mutex;
16
17#ifdef CONFIG_KEXEC_FILE
18void kimage_file_post_load_cleanup(struct kimage *image);
19#else /* CONFIG_KEXEC_FILE */
20static inline void kimage_file_post_load_cleanup(struct kimage *image) { }
21#endif /* CONFIG_KEXEC_FILE */
22#endif /* LINUX_KEXEC_INTERNAL_H */