image Struct Reference

An executable or loadable 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 [16]
 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.
union {
   physaddr_t   phys
   userptr_t   user
   unsigned long   ul
priv
 Image type private data.
struct imagereplacement
 Replacement image.


Detailed Description

An executable or loadable image.

Definition at line 22 of file image.h.


Field Documentation

struct refcnt image::refcnt [read]

Reference count.

Definition at line 24 of file image.h.

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

struct list_head image::list [read]

List of registered images.

Definition at line 27 of file image.h.

Referenced by find_image(), imgfree_exec(), register_image(), and unregister_image().

struct uri* image::uri [read]

URI of image.

Definition at line 30 of file image.h.

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

char image::name[16]

unsigned int image::flags

Flags.

Definition at line 34 of file image.h.

Referenced by image_exec(), image_load_type(), imgautoselect(), and imgstat().

struct image_type* image::type [read]

Definition at line 47 of file image.h.

Referenced by elf_load(), elf_load_segment(), elfboot_exec(), multiboot_exec(), and multiboot_load_raw().

Definition at line 48 of file image.h.

Referenced by bzimage_exec(), bzimage_load(), nbi_exec(), and nbi_load().

unsigned long image::ul

Definition at line 49 of file image.h.

Referenced by eltorito_exec(), and eltorito_load().

union { ... } image::priv

struct image* image::replacement [read]

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. The new image must already be in a suitable state for execution (i.e. loaded).

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 65 of file image.h.

Referenced by com32_exec(), comboot_exec(), free_image(), and image_exec().


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

Generated on Tue Apr 6 20:02:06 2010 for gPXE by  doxygen 1.5.7.1