iPXE
Functions
null_reboot.c File Reference

Null reboot mechanism. More...

#include <stdio.h>
#include <errno.h>
#include <ipxe/reboot.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static void null_reboot (int warm __unused)
 Reboot system.
static int null_poweroff (void)
 Power off system.
 PROVIDE_REBOOT (null, reboot, null_reboot)
 PROVIDE_REBOOT (null, poweroff, null_poweroff)

Detailed Description

Null reboot mechanism.

Definition in file null_reboot.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static void null_reboot ( int warm  __unused) [static]

Reboot system.

Parameters:
warmPerform a warm reboot

Definition at line 42 of file null_reboot.c.

References printf().

                                              {

        printf ( "Cannot reboot; not implemented\n" );
        while ( 1 ) {}
}
static int null_poweroff ( void  ) [static]

Power off system.

Return values:
rcReturn status code

Definition at line 53 of file null_reboot.c.

References ENOTSUP.

                                  {

        return -ENOTSUP;
}
PROVIDE_REBOOT ( null  ,
reboot  ,
null_reboot   
)
PROVIDE_REBOOT ( null  ,
poweroff  ,
null_poweroff   
)