[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] loader: document that errno is set
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PATCH] loader: document that errno is set |
Date: |
Wed, 5 Feb 2014 22:05:42 +0200 |
Document that get_image_size sets errorno
on failure.
Suggested-by: Peter Maydell <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
include/hw/loader.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/hw/loader.h b/include/hw/loader.h
index 7a23d6b..91b0122 100644
--- a/include/hw/loader.h
+++ b/include/hw/loader.h
@@ -4,6 +4,13 @@
#include "hw/nvram/fw_cfg.h"
/* loader.c */
+/**
+ * get_image_size: retrieve size of an image file
+ * @filename: Path to the image file
+ *
+ * Returns the size of the image file on success, -1 otherwise.
+ * On error, errno is also set as appropriate.
+ */
int get_image_size(const char *filename);
int load_image(const char *filename, uint8_t *addr); /* deprecated */
int load_image_targphys(const char *filename, hwaddr,
--
MST
- [Qemu-devel] [PATCH] loader: document that errno is set,
Michael S. Tsirkin <=