PXENV_STOP_UNDI
[PXE Preboot API]

STOP UNDI. More...


Data Structures

struct  s_PXENV_STOP_UNDI
 Parameter block for pxenv_stop_undi(). More...

Defines

#define PXENV_STOP_UNDI   0x0015
 PXE API function code for pxenv_stop_undi().

Typedefs

typedef struct s_PXENV_STOP_UNDI PXENV_STOP_UNDI_t

Functions

PXENV_EXIT_t pxenv_stop_undi (struct s_PXENV_STOP_UNDI *stop_undi)


Detailed Description

STOP UNDI.

Define Documentation

#define PXENV_STOP_UNDI   0x0015

PXE API function code for pxenv_stop_undi().

Definition at line 511 of file pxe_api.h.

Referenced by pxe_api_call(), pxeparent_function_name(), undinet_probe(), and undinet_remove().


Typedef Documentation

Definition at line 518 of file pxe_api.h.


Function Documentation

PXENV_EXIT_t pxenv_stop_undi ( struct s_PXENV_STOP_UNDI stop_undi  ) 

Definition at line 290 of file pxe_preboot.c.

References DBG, hooked_bios_interrupts, pxe_deactivate(), PXENV_EXIT_FAILURE, PXENV_EXIT_SUCCESS, PXENV_STATUS_KEEP_UNDI, PXENV_STATUS_SUCCESS, shutdown(), SHUTDOWN_BOOT, and s_PXENV_STOP_UNDI::Status.

Referenced by pxe_api_call().

00290                                                                      {
00291         DBG ( "PXENV_STOP_UNDI" );
00292 
00293         /* Deactivate PXE */
00294         pxe_deactivate();
00295 
00296         /* Prepare for unload */
00297         shutdown ( SHUTDOWN_BOOT );
00298 
00299         /* Check to see if we still have any hooked interrupts */
00300         if ( hooked_bios_interrupts != 0 ) {
00301                 DBG ( "PXENV_STOP_UNDI failed: %d interrupts still hooked\n",
00302                       hooked_bios_interrupts );
00303                 stop_undi->Status = PXENV_STATUS_KEEP_UNDI;
00304                 return PXENV_EXIT_FAILURE;
00305         }
00306 
00307         stop_undi->Status = PXENV_STATUS_SUCCESS;
00308         return PXENV_EXIT_SUCCESS;
00309 }


Generated on Tue Apr 6 20:01:59 2010 for gPXE by  doxygen 1.5.7.1