Data Structures | Functions | Variables
autoboot_cmd.c File Reference

Booting commands. More...

#include <stdio.h>
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <ipxe/netdevice.h>
#include <hci/ifmgmt_cmd.h>
#include <usr/autoboot.h>

Go to the source code of this file.

Data Structures

struct  autoboot_options
 "autoboot" options More...


static int autoboot_payload (struct net_device *netdev, struct autoboot_options *opts __unused)
 "autoboot" payload More...
static int autoboot_exec (int argc, char **argv)
 "autoboot" command More...


static struct option_descriptor autoboot_opts [] = {}
 "autoboot" option list More...
static struct ifcommon_command_descriptor autoboot_cmd
 "autoboot" command descriptor More...
struct command autoboot_commands [] __command
 Booting commands. More...

Detailed Description

Booting commands.

Definition in file autoboot_cmd.c.

Function Documentation



◆ autoboot_payload()

static int autoboot_payload ( struct net_device netdev,
struct autoboot_options *opts  __unused 

"autoboot" payload

netdevNetwork device
optsCommand options
Return values
rcReturn status code

Definition at line 53 of file autoboot_cmd.c.

54  {
55  return netboot ( netdev );
56 }
int netboot(struct net_device *netdev)
Boot from a network device.
Definition: autoboot.c:391
static struct net_device * netdev
Definition: gdbudp.c:52

References netboot(), and netdev.

◆ autoboot_exec()

static int autoboot_exec ( int  argc,
char **  argv 

"autoboot" command

argcArgument count
argvArgument list
Return values
rcReturn status code

Definition at line 71 of file autoboot_cmd.c.

71  {
72  return ifcommon_exec ( argc, argv, &autoboot_cmd );
73 }
static struct ifcommon_command_descriptor autoboot_cmd
"autoboot" command descriptor
Definition: autoboot_cmd.c:59
int ifcommon_exec(int argc, char **argv, struct ifcommon_command_descriptor *ifcmd)
Execute if<xxx> command.
Definition: ifmgmt_cmd.c:51

References autoboot_cmd, and ifcommon_exec().

Variable Documentation

◆ autoboot_opts

struct option_descriptor autoboot_opts[] = {}

"autoboot" option list

Definition at line 44 of file autoboot_cmd.c.

◆ autoboot_cmd

struct ifcommon_command_descriptor autoboot_cmd
Initial value:
0, MAX_ARGUMENTS, "[<interface>...]",
static struct option_descriptor autoboot_opts[]
"autoboot" option list
Definition: autoboot_cmd.c:44
No maximum number of arguments.
Definition: parseopt.h:97
"autoboot" options
Definition: autoboot_cmd.c:41
static int autoboot_payload(struct net_device *netdev, struct autoboot_options *opts __unused)
"autoboot" payload
Definition: autoboot_cmd.c:53
#define IFCOMMON_COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage, _payload, _stop_on_first_success)
Construct "if<xxx>" command descriptor.
Definition: ifmgmt_cmd.h:57

"autoboot" command descriptor

Definition at line 59 of file autoboot_cmd.c.

Referenced by autoboot_exec().

◆ __command

struct command autoboot_commands [] __command
Initial value:
= {
.name = "autoboot",
.exec = autoboot_exec,
static int autoboot_exec(int argc, char **argv)
"autoboot" command
Definition: autoboot_cmd.c:71

Booting commands.

Definition at line 76 of file autoboot_cmd.c.