62 DBGC (
image,
"CMDLINE freeing command line\n" );
72 .
type = &script_image_type,
76#define colour &efi_cmdline_image
91 DBGC (
colour,
"CMDLINE found no command line\n" );
129 DBGC (
colour,
"CMDLINE could not register command line: %s\n",
131 goto err_register_image;
161 .name =
"efi_cmdline",
#define NULL
NULL pointer (VOID *).
#define colour
Colour for debug messages.
struct arbelprm_rc_send_wqe rc
int isspace(int character)
Check to see if character is a space.
static void efi_cmdline_free(struct refcnt *refcnt)
Free command line image.
static int efi_cmdline_init(void)
Initialise EFI command line.
size_t efi_cmdline_len
Length of EFI command line (in bytes).
const wchar_t * efi_cmdline
EFI command line (may not be wNUL-terminated.
static struct image efi_cmdline_image
Embedded script representing the command line.
static void efi_cmdline_startup(void)
EFI command line startup function.
static void * efi_cmdline_copy
Internal copy of the command line.
uint32_t type
Operating system type.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define ENOMEM
Not enough space.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define STARTUP_NORMAL
Normal startup.
void free_image(struct refcnt *refcnt)
Free executable image.
int register_image(struct image *image)
Register executable image.
#define IMAGE_STATIC_NAME
Image name is statically allocated.
static void image_put(struct image *image)
Decrement reference count on an image.
#define IMAGE_STATIC
Image is statically allocated.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
#define __startup_fn(startup_order)
Declare a startup/shutdown function.
Access to external ("user") memory.
void * zalloc(size_t size)
Allocate cleared memory.
static void(* free)(struct refcnt *refcnt))
#define REF_INIT(free_fn)
Initialise a static reference counter.
#define container_of(ptr, type, field)
Get containing structure.
char * strerror(int errno)
Retrieve string representation of error number.
size_t strlen(const char *src)
Get length of string.
A startup/shutdown function.
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.