iPXE
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...

Functions

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

Variables

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

Detailed Description

Booting commands.

Definition in file autoboot_cmd.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static int autoboot_payload ( struct net_device netdev,
struct autoboot_options *opts  __unused 
) [static]

"autoboot" payload

Parameters:
netdevNetwork device
optsCommand options
Return values:
rcReturn status code

Definition at line 53 of file autoboot_cmd.c.

References netboot().

                                                                       {
        return netboot ( netdev );
}
static int autoboot_exec ( int  argc,
char **  argv 
) [static]

"autoboot" command

Parameters:
argcArgument count
argvArgument list
Return values:
rcReturn status code

Definition at line 71 of file autoboot_cmd.c.

References ifcommon_exec().

                                                   {
        return ifcommon_exec ( argc, argv, &autoboot_cmd );
}

Variable Documentation

struct option_descriptor autoboot_opts[] = {} [static]

"autoboot" option list

Definition at line 44 of file autoboot_cmd.c.

Initial value:

"autoboot" command descriptor

Definition at line 59 of file autoboot_cmd.c.

struct command autoboot_commands [] __command
Initial value:
 {
        {
                .name = "autoboot",
                .exec = autoboot_exec,
        },
}

Booting commands.

Definition at line 76 of file autoboot_cmd.c.