diff options
| author | Michael Brown | 2021-01-20 19:08:04 +0100 |
|---|---|---|
| committer | Michael Brown | 2021-01-22 19:44:58 +0100 |
| commit | b99477b3fa6d4063314a313f62b7ae784bcbe710 (patch) | |
| tree | 91c8cdc57cac2de558278c81628d9ea7ed02b6ba /src/include/usr | |
| parent | [image] Provide image_set_data() (diff) | |
| download | ipxe-b99477b3fa6d4063314a313f62b7ae784bcbe710.tar.gz ipxe-b99477b3fa6d4063314a313f62b7ae784bcbe710.tar.xz ipxe-b99477b3fa6d4063314a313f62b7ae784bcbe710.zip | |
[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/usr')
| -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 806df0bfb..c59cf1a0b 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 */ |
