59 DBGC (
image,
"CMDLINE freeing command line\n" );
67 .type = &script_image_type,
71 #define colour &efi_cmdline_image 85 DBGC (
colour,
"CMDLINE found no command line\n" );
117 DBGC (
colour,
"CMDLINE could not register command line: %s\n",
119 goto err_register_image;
149 .
name =
"efi_cmdline",
#define STARTUP_NORMAL
Normal startup.
struct arbelprm_rc_send_wqe rc
userptr_t data
Raw file image.
const wchar_t * efi_cmdline
EFI command line (may not be wNUL-terminated.
static void efi_cmdline_startup(void)
EFI command line startup function.
A startup/shutdown function.
#define ENOMEM
Not enough space.
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.
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.
userptr_t virt_to_user(volatile const void *addr)
Convert virtual address to user pointer.
#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.