iPXE
efi_image.h File Reference

EFI images. More...

#include <ipxe/image.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
struct image_type efi_image_type[] __image_type (PROBE_NORMAL)
static int efi_can_load (struct image *image)
 Check if EFI image can be loaded directly.

Detailed Description

EFI images.

Definition in file efi_image.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ __image_type()

struct image_type efi_image_type[] __image_type ( PROBE_NORMAL )
extern

References __image_type, and PROBE_NORMAL.

◆ efi_can_load()

int efi_can_load ( struct image * image)
inlinestatic

Check if EFI image can be loaded directly.

Parameters
imageEFI image
Return values
can_loadEFI image can be loaded directly

Definition at line 23 of file efi_image.h.

23 {
24
25 return ( image->type == efi_image_type );
26}
An executable image.
Definition image.h:24
struct image_type * type
Image type, if known.
Definition image.h:59

References image::type.

Referenced by efi_image_exec(), and shim_exec().