From b8122dc9340e2f208220f0c88b4d71f91b78774f Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Wed, 6 Mar 2013 17:14:58 +0800 Subject: discover: Implement device handler boot path This change adds a funtion, device_handler_boot, which processes the boot command message from the discover server. We add a new file, discover/boot.c (and a corresponding header) with a skeleton for the final kexec code. Signed-off-by: Jeremy Kerr --- discover/boot.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 discover/boot.c (limited to 'discover/boot.c') diff --git a/discover/boot.c b/discover/boot.c new file mode 100644 index 0000000..ddb9e7d --- /dev/null +++ b/discover/boot.c @@ -0,0 +1,14 @@ + +#include "boot.h" + +int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd, + int dry_run) +{ + /* todo: run kexec with options from opt & cmd */ + (void)ctx; + (void)opt; + (void)cmd; + (void)dry_run; + + return 0; +} -- cgit v1.2.1