iPXE
Defines | Functions | Variables
pxe_exit_hook.c File Reference

PXE exit hook. More...

#include <stdint.h>
#include <realmode.h>
#include <pxe.h>

Go to the source code of this file.

Defines

#define pxe_exit_hook   __use_data16 ( pxe_exit_hook )

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
segoff_t __data16 (pxe_exit_hook)
 PXE exit hook.
static PXENV_EXIT_t pxenv_file_exit_hook (struct s_PXENV_FILE_EXIT_HOOK *file_exit_hook)
 FILE EXIT HOOK.

Variables

struct pxe_api_call
pxe_file_api_exit_hook 
__pxe_api_call
 PXE file API.

Detailed Description

PXE exit hook.

Definition in file pxe_exit_hook.c.


Define Documentation

Definition at line 38 of file pxe_exit_hook.c.

Referenced by pxenv_file_exit_hook().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

PXE exit hook.

static PXENV_EXIT_t pxenv_file_exit_hook ( struct s_PXENV_FILE_EXIT_HOOK file_exit_hook) [static]

FILE EXIT HOOK.

Parameters:
file_exit_hookPointer to a struct s_PXENV_FILE_EXIT_HOOK
s_PXENV_FILE_EXIT_HOOK::HookSEG16:OFF16 to jump to
Return values:
PXENV_EXIT_SUCCESSSuccessfully set hook
PXENV_EXIT_FAILUREWe're not an NBP build
s_PXENV_FILE_EXIT_HOOK::StatusPXE status code

Definition at line 52 of file pxe_exit_hook.c.

References DBG, s_PXENV_FILE_EXIT_HOOK::Hook, pxe_exit_hook, PXENV_EXIT_SUCCESS, PXENV_STATUS_SUCCESS, and s_PXENV_FILE_EXIT_HOOK::Status.

                                                                       {
        DBG ( "PXENV_FILE_EXIT_HOOK" );

        /* We'll jump to the specified SEG16:OFF16 during exit */
        pxe_exit_hook.segment = file_exit_hook->Hook.segment;
        pxe_exit_hook.offset = file_exit_hook->Hook.offset;
        file_exit_hook->Status = PXENV_STATUS_SUCCESS;
        return PXENV_EXIT_SUCCESS;
}

Variable Documentation

struct pxe_api_call pxe_file_api_exit_hook __pxe_api_call
Initial value:

PXE file API.

Definition at line 63 of file pxe_exit_hook.c.