61 DBGC (
image,
"CMDLINE freeing command line\n" );
71 .
type = &script_image_type,
75 #define colour &efi_cmdline_image 89 DBGC (
colour,
"CMDLINE found no command line\n" );
121 DBGC (
colour,
"CMDLINE could not register command line: %s\n",
123 goto err_register_image;
153 .
name =
"efi_cmdline",
#define STARTUP_NORMAL
Normal startup.
struct arbelprm_rc_send_wqe rc
const wchar_t * efi_cmdline
EFI command line (may not be wNUL-terminated.
const void * data
Read-only data.
uint32_t type
Operating system type.
static void efi_cmdline_startup(void)
EFI command line startup function.
A startup/shutdown function.
#define ENOMEM
Not enough space.
void free_image(struct refcnt *refcnt)
Free executable image.
#define IMAGE_STATIC
Image is statically allocated.
struct startup_fn efi_cmdline_startup_fn __startup_fn(STARTUP_NORMAL)
Command line and initrd initialisation function.
#define container_of(ptr, type, field)
Get containing structure.
Access to external ("user") memory.
static void efi_cmdline_free(struct refcnt *refcnt)
Free command line image.
static int efi_cmdline_init(void)
Initialise EFI command line.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int register_image(struct image *image)
Register executable image.
char * strerror(int errno)
Retrieve string representation of error number.
static void(* free)(struct refcnt *refcnt))
size_t len
Length of raw file image.
int isspace(int character)
Check to see if character is a space.
size_t strlen(const char *src)
Get length of string.
static void image_put(struct image *image)
Decrement reference count on an image.
void * malloc(size_t size)
Allocate memory.
#define colour
Colour for debug messages.
static char * efi_cmdline_copy
Internal copy of the command line.
#define IMAGE_STATIC_NAME
Image name is statically allocated.
#define REF_INIT(free_fn)
Initialise a static reference counter.
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.
size_t efi_cmdline_len
Length of EFI command line (in bytes)
static struct image efi_cmdline_image
Embedded script representing the command line.
struct refcnt refcnt
Reference count.