iPXE
imgmgmt.h
Go to the documentation of this file.
1 #ifndef _USR_IMGMGMT_H
2 #define _USR_IMGMGMT_H
3 
4 /** @file
5  *
6  * Image management
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/image.h>
13 
14 extern int imgdownload ( struct uri *uri, unsigned long timeout,
15  struct image **image );
16 extern int imgdownload_string ( const char *uri_string, unsigned long timeout,
17  struct image **image );
18 extern int imgacquire ( const char *name, unsigned long timeout,
19  struct image **image );
20 extern void imgstat ( struct image *image );
21 extern int imgmem ( const char *name, userptr_t data, size_t len );
22 
23 #endif /* _USR_IMGMGMT_H */
const char * name
Definition: ath9k_hw.c:1984
int imgdownload(struct uri *uri, unsigned long timeout, struct image **image)
Download a new image.
Definition: imgmgmt.c:51
int imgacquire(const char *name, unsigned long timeout, struct image **image)
Acquire an image.
Definition: imgmgmt.c:141
An executable image.
Definition: image.h:24
int imgmem(const char *name, userptr_t data, size_t len)
Create image from block of memory.
Definition: imgmgmt.c:187
int imgdownload_string(const char *uri_string, unsigned long timeout, struct image **image)
Download a new image.
Definition: imgmgmt.c:119
Executable images.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void imgstat(struct image *image)
Display status of an image.
Definition: imgmgmt.c:158
uint32_t len
Length.
Definition: ena.h:14
uint8_t data[48]
Additional event data.
Definition: ena.h:22
A Uniform Resource Identifier.
Definition: uri.h:64
void timeout(int)
unsigned long userptr_t
A pointer to a user buffer.
Definition: uaccess.h:33