iPXE
|
An executable image. More...
#include <image.h>
Data Fields | |
struct refcnt | refcnt |
Reference count. More... | |
struct list_head | list |
List of registered images. More... | |
struct uri * | uri |
URI of image. More... | |
char * | name |
Name. More... | |
unsigned int | flags |
Flags. More... | |
char * | cmdline |
Command line to pass to image. More... | |
userptr_t | data |
Raw file image. More... | |
size_t | len |
Length of raw file image. More... | |
struct image_type * | type |
Image type, if known. More... | |
struct image * | replacement |
Replacement image. More... | |
struct refcnt image::refcnt |
Reference count.
Definition at line 26 of file image.h.
Referenced by alloc_image(), image_get(), and image_put().
struct list_head image::list |
List of registered images.
Definition at line 29 of file image.h.
Referenced by 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_extract(), image_set_uri(), and multiboot_add_cmdline().
char* image::name |
Name.
Definition at line 34 of file image.h.
Referenced by com32_exec_loop(), com32_identify(), com32_probe(), comboot_exec_loop(), comboot_identify(), comboot_probe(), der_probe(), digest_exec(), downloader_finished(), efi_autoexec_load(), efi_file_find(), efi_file_image(), efi_file_read_initrd(), efi_image_cmdline(), efi_image_exec(), efi_image_path(), efi_image_probe(), efi_pe_image_probe(), embedded_init(), find_image(), free_image(), gzip_okx(), image_asn1(), image_exec(), image_extract(), image_pixbuf(), image_probe(), image_replace(), image_set_name(), image_set_uri(), image_strip_suffix(), imgdecrypt(), imgstat(), imgverify(), initrd_dump(), initrd_squash_high(), multiboot_add_modules(), pem_image_asn1(), pem_image_probe(), png_chunk(), png_image_data(), png_image_end(), png_image_header(), png_palette(), png_pixbuf(), png_pixels_pass(), png_probe(), png_unfilter_pass(), pnm_ascii(), pnm_binary(), pnm_data(), pnm_pixbuf(), pnm_probe(), pnm_scale(), register_image(), ucode_describe(), ucode_exec(), ucode_parse(), ucode_parse_amd(), ucode_parse_intel(), ucode_probe(), ucode_update_all(), ucode_verify(), unregister_image(), and zlib_okx().
unsigned int image::flags |
Flags.
Definition at line 36 of file image.h.
Referenced by bzimage_load_initrd(), cms_decrypt(), cms_verify_fail_okx(), cms_verify_okx(), efi_file_install(), efi_file_read_dir(), efi_file_read_initrd(), efi_image_exec(), image_exec(), image_extract(), image_extract_exec(), image_hide(), image_trust(), image_untrust(), imgsingle_exec(), imgstat(), multiboot_add_modules(), register_image(), unregister_image(), and uriboot().
char* image::cmdline |
Command line to pass to image.
Definition at line 39 of file image.h.
Referenced by bzimage_check_initrds(), bzimage_set_cmdline(), com32_exec_loop(), comboot_copy_cmdline(), cpio_name(), efi_image_cmdline(), free_image(), image_argument(), image_extract_exec(), image_set_cmdline(), imgstat(), multiboot_add_cmdline(), pxe_exec(), and ucode_exec().
userptr_t image::data |
Raw file image.
Definition at line 41 of file image.h.
Referenced by bzimage_check_initrds(), bzimage_exec(), bzimage_load_initrd(), bzimage_load_initrds(), bzimage_probe(), cmdline_init(), cms_decrypt(), cms_decrypt_okx(), cms_verify(), cms_verify_fail_okx(), cms_verify_okx(), com32_identify(), com32_load_image(), comboot_prepare_segment(), create_downloader(), der_asn1(), der_probe(), digest_exec(), efi_cmdline_init(), efi_file_read_image(), efi_file_read_initrd(), efi_ifr_package(), efi_image_exec(), efi_image_probe(), efi_pe_image_probe(), elf_load(), elf_load_segment(), elf_segments(), elfboot_probe(), embedded_init(), free_image(), gzip_extract(), gzip_okx(), gzip_probe(), image_set_data(), image_set_len(), initrd_dump(), initrd_squash_high(), multiboot_add_modules(), multiboot_find_header(), multiboot_load_raw(), nbi_exec(), nbi_load_segment(), nbi_probe(), nbi_process_segments(), pem_image_asn1(), pem_image_probe(), png_image_data(), png_image_header(), png_palette(), png_pixbuf(), png_probe(), pnm_ascii(), pnm_binary(), pnm_probe(), pnm_type(), process_script(), pxe_exec(), pxe_probe_no_mz(), register_image(), script_probe(), sdi_exec(), sdi_parse_header(), ucode_parse_amd(), ucode_parse_intel(), ucode_probe(), ucode_verify(), zlib_deflate(), zlib_extract(), zlib_okx(), and zlib_probe().
size_t image::len |
Length of raw file image.
Definition at line 43 of file image.h.
Referenced by bzimage_check_initrds(), bzimage_load_initrd(), bzimage_load_initrds(), bzimage_parse_header(), cert_exec(), cmdline_init(), cms_decrypt(), cms_decrypt_okx(), cms_verify(), com32_exec_loop(), com32_identify(), com32_load_image(), comboot_exec(), comboot_prepare_segment(), cpio_header(), der_asn1(), der_probe(), digest_exec(), downloader_finished(), efi_autoexec_load(), efi_cmdline_init(), efi_file_get_info(), efi_file_read_image(), efi_file_read_initrd(), efi_image_exec(), efi_image_probe(), efi_pe_image_probe(), elf_segment(), elf_segments(), embedded_init(), gzip_extract(), gzip_okx(), gzip_probe(), image_set_len(), imgstat(), initrd_dump(), initrd_squash_high(), multiboot_add_modules(), multiboot_find_header(), multiboot_load_raw(), nbi_probe(), nbi_process_segments(), pem_image_asn1(), pem_image_probe(), png_pixbuf(), png_probe(), pnm_ascii(), pnm_binary(), pnm_probe(), pnm_type(), process_script(), pxe_exec(), pxe_probe(), pxe_probe_no_mz(), register_image(), script_probe(), sdi_exec(), sdi_parse_header(), ucode_parse(), ucode_parse_amd(), ucode_parse_intel(), ucode_probe(), zlib_deflate(), zlib_extract(), zlib_okx(), and zlib_probe().
struct image_type* image::type |
Image type, if known.
Definition at line 46 of file image.h.
Referenced by cms_decrypt(), efi_can_load(), gzip_okx(), image_asn1(), image_exec(), image_extract(), image_pixbuf(), image_probe(), image_select(), imgstat(), register_image(), and zlib_okx().
struct image* image::replacement |
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(), and image_replace().