iPXE
Data Fields
image Struct Reference

An executable image. More...

#include <image.h>

Data Fields

struct refcnt refcnt
 Reference count.
struct list_head list
 List of registered images.
struct uriuri
 URI of image.
char * name
 Name.
unsigned int flags
 Flags.
char * cmdline
 Command line to pass to image.
userptr_t data
 Raw file image.
size_t len
 Length of raw file image.
struct image_typetype
 Image type, if known.
struct imagereplacement
 Replacement image.

Detailed Description

An executable image.

Definition at line 24 of file image.h.


Field Documentation

Reference count.

Definition at line 26 of file image.h.

Referenced by alloc_image(), image_get(), and image_put().

List of registered images.

Definition at line 29 of file image.h.

Referenced by efi_file_find(), find_image(), first_image(), register_image(), and unregister_image().

struct uri* image::uri

URI of image.

Definition at line 32 of file image.h.

Referenced by create_downloader(), free_image(), image_exec(), image_set_uri(), and multiboot_add_cmdline().

char* image::name
unsigned int image::flags

Image type, if known.

Definition at line 46 of file image.h.

Referenced by asn1_okx(), image_asn1(), image_exec(), image_pixbuf(), image_probe(), image_replace(), image_select(), imgstat(), pixbuf_okx(), and register_image().

Replacement image.

An image wishing to replace itself with another image (in a style similar to a Unix exec() call) should return from its exec() method with the replacement image set to point to the new image.

If an image unregisters itself as a result of being executed, it must make sure that its replacement image (if any) is registered, otherwise the replacement is likely to be freed before it can be executed.

Definition at line 60 of file image.h.

Referenced by com32_exec_loop(), comboot_exec_loop(), free_image(), image_exec(), image_replace(), and script_exec().


The documentation for this struct was generated from the following file: