loader: document that errno is set
PATCH 1/1 loader: document that errno is set
Document that get_image_size sets errorno
on failure.
Suggested-by Peter Maydell <[email protected]>
Signed-off-by Michael S. Tsirkin <[email protected]>
--- include/hw/loader.h | 7 +++++++ 1 file changed, 7 insertions(+)
include/hw/loader.h +7 -0
@@ -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,
Signature · 1 line
MST
Quoted 1 line · Michael S. Tsirkin
Document that
get_image_sizesets errorno
s/errorno/errno/
Quoted 8 lines
on failure.
Suggested-by Peter Maydell <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>--- include/hw/loader.h | 7 +++++++ 1 file changed, 7 insertions(+)
Reviewed-by Eric Blake <[email protected]>
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 7 lines · Eric Blake
Quoted 1 line · Michael S. Tsirkin
Document that
get_image_sizesets errornos/errorno/errno/
Quoted 2 lines
on failure.
Quoted 8 lines
Quoted 6 lines
Suggested-by Peter Maydell <[email protected]>Signed-off-by Michael S. Tsirkin <[email protected]>--- include/hw/loader.h | 7 +++++++ 1 file changed, 7 insertions(+)Reviewed-by Eric Blake <[email protected]>
Fixed in my tree, I won't repost just for this though.
Quoted 4 lines
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org