diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-01-20 18:08:04 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-01-22 18:44:58 +0000 |
commit | b99477b3fa6d4063314a313f62b7ae784bcbe710 (patch) | |
tree | 91c8cdc57cac2de558278c81628d9ea7ed02b6ba /src/include | |
parent | 99ac69b8a9a48207913e98ac6b357c029b0eef81 (diff) | |
download | ipxe-b99477b3fa6d4063314a313f62b7ae784bcbe710.zip ipxe-b99477b3fa6d4063314a313f62b7ae784bcbe710.tar.gz ipxe-b99477b3fa6d4063314a313f62b7ae784bcbe710.tar.bz2 |
[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>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/usr/imgmgmt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/usr/imgmgmt.h b/src/include/usr/imgmgmt.h index 806df0b..c59cf1a 100644 --- a/src/include/usr/imgmgmt.h +++ b/src/include/usr/imgmgmt.h @@ -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 */ |