|
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... | |
| union { | |
| const void * data | |
| Read-only data. More... | |
| void * rwdata | |
| Writable data. More... | |
| }; | |
| 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 25 of file image.h.
Referenced by alloc_image(), image_get(), image_put(), and lkrn_exec().
| struct list_head image::list |
List of registered images.
Definition at line 28 of file image.h.
Referenced by first_image(), lkrn_exec(), register_image(), and unregister_image().
| struct uri* image::uri |
URI of image.
Definition at line 31 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.
If the IMAGE_STATIC_NAME flag is set, then this is a statically allocated string.
Definition at line 37 of file image.h.
Referenced by bzimage_check_initrds(), bzimage_exec(), bzimage_load_initrds(), bzimage_parse_cmdline(), bzimage_parse_header(), bzimage_set_cmdline(), bzimage_update_header(), com32_exec_loop(), com32_identify(), com32_load_image(), com32_prepare_bounce_buffer(), comboot_exec(), comboot_exec_loop(), comboot_identify(), comboot_init_psp(), comboot_prepare_segment(), cpio_header(), cpio_parse_cmdline(), der_image_asn1(), der_image_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(), efisig_image_asn1(), efisig_image_probe(), elf_load(), elf_load_segment(), elf_segment(), elf_segments(), elfboot_check_segment(), elfboot_exec(), elfboot_probe(), embedded_init(), fdt_parse_image(), find_image(), free_image(), gzip_extract(), gzip_okx(), gzip_probe(), 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_load(), initrd_squash_high(), lkrn_exec(), lkrn_parse(), lkrn_probe(), lkrn_ram(), multiboot_add_modules(), multiboot_build_memmap(), multiboot_exec(), multiboot_find_header(), multiboot_load_elf(), multiboot_load_raw(), multiboot_probe(), nbi_boot16(), nbi_boot32(), nbi_exec(), nbi_prepare_dhcp(), nbi_prepare_segment(), nbi_probe(), nbi_process_segments(), 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(), pxe_exec(), pxe_probe_no_mz(), register_image(), sdi_exec(), sdi_probe(), ucode_describe(), ucode_exec(), ucode_parse(), ucode_parse_amd(), ucode_parse_intel(), ucode_probe(), ucode_update_all(), ucode_verify(), unregister_image(), zimg_extract(), zimg_parse(), zimg_probe(), zlib_deflate(), zlib_okx(), and zlib_probe().
| unsigned int image::flags |
Flags.
Definition at line 39 of file image.h.
Referenced by cms_decrypt(), cms_verify_fail_okx(), cms_verify_okx(), efi_file_install(), efi_file_read_dir(), efi_file_read_initrd(), efi_image_exec(), free_image(), image_exec(), image_extract(), image_extract_exec(), image_hide(), image_set_len(), image_set_name(), image_trust(), image_untrust(), imgsingle_exec(), imgstat(), initrd_load(), multiboot_add_modules(), register_image(), unregister_image(), and uriboot().
| char* image::cmdline |
Command line to pass to image.
Definition at line 42 of file image.h.
Referenced by bzimage_set_cmdline(), com32_exec_loop(), comboot_copy_cmdline(), cpio_name(), efi_image_cmdline(), efi_image_exec(), free_image(), image_argument(), image_extract_exec(), image_set_cmdline(), imgstat(), lkrn_exec(), multiboot_add_cmdline(), pxe_exec(), register_image(), and ucode_exec().
| const void* image::data |
Read-only data.
Definition at line 50 of file image.h.
Referenced by bzimage_exec(), bzimage_parse_header(), cmdline_init(), cms_decrypt(), cms_decrypt_okx(), cms_verify(), com32_identify(), com32_load_image(), comboot_prepare_segment(), der_image_asn1(), der_image_probe(), digest_exec(), downloader_finished(), efi_cmdline_init(), efi_file_read_image(), efi_file_read_initrd(), efi_pe_image_probe(), efisig_image_asn1(), efisig_image_probe(), elf_load(), elf_load_segment(), elf_segments(), elfboot_probe(), gzip_extract(), gzip_okx(), gzip_probe(), initrd_dump(), initrd_load(), initrd_squash_high(), lkrn_exec(), lkrn_parse(), multiboot_add_modules(), multiboot_exec(), multiboot_find_header(), multiboot_load_raw(), multiboot_probe(), 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_probe(), ucode_parse_amd(), ucode_parse_intel(), ucode_probe(), ucode_verify(), zimg_extract(), zimg_parse(), zlib_extract(), zlib_okx(), and zlib_probe().
| void* image::rwdata |
Writable data.
Definition at line 52 of file image.h.
Referenced by cms_decrypt(), efi_image_exec(), efi_image_probe(), fdt_parse_image(), free_image(), image_set_data(), image_set_len(), and zlib_deflate().
| union { ... } |
Raw file image.
If the IMAGE_STATIC flag is set, then this is a statically allocated image.
| size_t image::len |
Length of raw file image.
Definition at line 55 of file image.h.
Referenced by bzimage_parse_header(), cert_exec(), cmdline_init(), cms_decrypt(), cms_decrypt_okx(), cms_verify(), com32_identify(), com32_load_image(), comboot_exec(), comboot_prepare_segment(), cpio_header(), der_image_asn1(), der_image_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(), efisig_image_asn1(), efisig_image_probe(), elf_load(), elf_segment(), elf_segments(), elfboot_probe(), embedded_init(), fdt_parse_image(), gzip_extract(), gzip_okx(), gzip_probe(), image_set_len(), imgstat(), initrd_dump(), initrd_load(), initrd_squash_high(), lkrn_exec(), lkrn_parse(), 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_probe(), ucode_parse(), ucode_parse_amd(), ucode_parse_intel(), ucode_probe(), zimg_parse(), zlib_deflate(), zlib_extract(), zlib_okx(), and zlib_probe().
| struct image_type* image::type |
Image type, if known.
Definition at line 58 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 72 of file image.h.
Referenced by com32_exec_loop(), comboot_exec_loop(), free_image(), image_exec(), and image_replace().
1.8.15