Back to home page

LXR

 
 

    


0001 #ifndef LINUX_KEXEC_INTERNAL_H
0002 #define LINUX_KEXEC_INTERNAL_H
0003 
0004 #include <linux/kexec.h>
0005 
0006 struct kimage *do_kimage_alloc_init(void);
0007 int sanity_check_segment_list(struct kimage *image);
0008 void kimage_free_page_list(struct list_head *list);
0009 void kimage_free(struct kimage *image);
0010 int kimage_load_segment(struct kimage *image, struct kexec_segment *segment);
0011 void kimage_terminate(struct kimage *image);
0012 int kimage_is_destination_range(struct kimage *image,
0013                 unsigned long start, unsigned long end);
0014 
0015 extern struct mutex kexec_mutex;
0016 
0017 #ifdef CONFIG_KEXEC_FILE
0018 struct kexec_sha_region {
0019     unsigned long start;
0020     unsigned long len;
0021 };
0022 
0023 void kimage_file_post_load_cleanup(struct kimage *image);
0024 #else /* CONFIG_KEXEC_FILE */
0025 static inline void kimage_file_post_load_cleanup(struct kimage *image) { }
0026 #endif /* CONFIG_KEXEC_FILE */
0027 #endif /* LINUX_KEXEC_INTERNAL_H */