mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
Place command-line inline, to save on memory allocation hassles.
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
|
||||
struct image_type;
|
||||
|
||||
/** Maximum length of a command line */
|
||||
#define CMDLINE_MAX 128
|
||||
|
||||
/** An executable or loadable image */
|
||||
struct image {
|
||||
/** Name */
|
||||
@@ -22,12 +25,20 @@ struct image {
|
||||
struct list_head list;
|
||||
|
||||
/** Command line to pass to image */
|
||||
const char *cmdline;
|
||||
char cmdline[CMDLINE_MAX];
|
||||
|
||||
/** Raw file image */
|
||||
userptr_t data;
|
||||
/** Length of raw file image */
|
||||
size_t len;
|
||||
/**
|
||||
* Free raw file image
|
||||
*
|
||||
* @v data Raw file image
|
||||
*
|
||||
* Call this method before freeing up the @c struct @c image.
|
||||
*/
|
||||
void ( * free ) ( userptr_t data );
|
||||
|
||||
/** Entry point */
|
||||
physaddr_t entry;
|
||||
|
||||
Reference in New Issue
Block a user