summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2007-01-11 18:06:25 +0100
committerMichael Brown2007-01-11 18:06:25 +0100
commit819cd3f41cacd487e927f7e2bad24b26750e4387 (patch)
treec313b5ef7bdc29e0550dfaf0644ade5ca25fd57e /src/include
parentDistinguish between ENOMEM (as representing a lack of internal memory (diff)
downloadipxe-819cd3f41cacd487e927f7e2bad24b26750e4387.tar.gz
ipxe-819cd3f41cacd487e927f7e2bad24b26750e4387.tar.xz
ipxe-819cd3f41cacd487e927f7e2bad24b26750e4387.zip
Limit -ENOEXEC to mean "this is not in my format".
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/image.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/gpxe/image.h b/src/include/gpxe/image.h
index 6bb6b0124..22f8939f1 100644
--- a/src/include/gpxe/image.h
+++ b/src/include/gpxe/image.h
@@ -40,6 +40,14 @@ struct image_type {
* discarded after this call; the method must preserve any
* information it may require later (e.g. the execution
* address) within the @c image structure.
+ *
+ * The method should return -ENOEXEC if and only if the image
+ * is not in the correct format. Other errors will be
+ * interpreted as "I claim this image format, but there's
+ * something wrong with it that makes it unloadable". In
+ * particular, returning -ENOEXEC will cause the image probing
+ * code to try the next available image type, while returning
+ * any other error will terminate image probing.
*/
int ( * load ) ( struct image *image );
};