4 #include <types/types.h>
5 #include "device-handler.h"
10 typedef void (*boot_status_fn)(void *arg, struct boot_status *);
12 struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
13 struct boot_command *cmd, int dry_run,
14 boot_status_fn status_fn, void *status_arg);
16 void boot_cancel(struct boot_task *task);
19 struct load_url_result *image;
20 struct load_url_result *initrd;
21 struct load_url_result *dtb;
22 const char *local_image;
23 const char *local_initrd;
24 const char *local_dtb;
25 char *local_image_override;
26 char *local_initrd_override;
27 char *local_dtb_override;
30 boot_status_fn status_fn;
34 bool verify_signature;
36 struct load_url_result *image_signature;
37 struct load_url_result *initrd_signature;
38 struct load_url_result *dtb_signature;
39 struct load_url_result *cmdline_signature;
40 const char *local_image_signature;
41 const char *local_initrd_signature;
42 const char *local_dtb_signature;
43 const char *local_cmdline_signature;
47 KEXEC_LOAD_DECRYPTION_FALURE = 252,
48 KEXEC_LOAD_SIG_SETUP_INVALID = 253,
49 KEXEC_LOAD_SIGNATURE_FAILURE = 254,