[image] Add the "imgmem" command

Provide the "imgmem" command to create an image from an existing block
of memory, for debugging purposes only.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2021-01-20 18:08:04 +00:00
parent 99ac69b8a9
commit b99477b3fa
5 changed files with 148 additions and 0 deletions

View File

@@ -18,5 +18,7 @@ extern int imgdownload_string ( const char *uri_string, unsigned long timeout,
extern int imgacquire ( const char *name, unsigned long timeout,
struct image **image );
extern void imgstat ( struct image *image );
extern int imgmem ( userptr_t data, size_t len, const char *name,
struct image **image );
#endif /* _USR_IMGMGMT_H */