#include <gpxe/netdevice.h>#include <gpxe/command.h>#include <hci/ifmgmt_cmd.h>#include <pxe_call.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| static int | startpxe_payload (struct net_device *netdev) |
| static int | startpxe_exec (int argc, char **argv) |
| static int | stoppxe_exec (int argc __unused, char **argv __unused) |
Variables | |
| struct command pxe_commands[] | __command |
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| static int startpxe_payload | ( | struct net_device * | netdev | ) | [static] |
Definition at line 8 of file pxe_cmd.c.
References netdev_is_open(), and pxe_activate().
Referenced by startpxe_exec().
00008 { 00009 if ( netdev_is_open ( netdev ) ) 00010 pxe_activate ( netdev ); 00011 return 0; 00012 }
| static int startpxe_exec | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
Definition at line 14 of file pxe_cmd.c.
References ifcommon_exec(), and startpxe_payload().
00014 { 00015 return ifcommon_exec ( argc, argv, startpxe_payload, 00016 "Activate PXE on" ); 00017 }
| static int stoppxe_exec | ( | int argc | __unused, | |
| char **argv | __unused | |||
| ) | [static] |
Definition at line 19 of file pxe_cmd.c.
References pxe_deactivate().
00019 { 00020 pxe_deactivate(); 00021 return 0; 00022 }
Initial value:
{
{
.name = "startpxe",
.exec = startpxe_exec,
},
{
.name = "stoppxe",
.exec = stoppxe_exec,
},
}
1.5.7.1