/linux-master/arch/mips/fw/lib/ |
H A D | Makefile | 6 lib-y += cmdline.o
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | unpriv_helpers.c | 15 char cmdline[4096], *c; local 18 fd = open("/proc/cmdline", O_RDONLY); 20 perror("open /proc/cmdline"); 24 if (read(fd, cmdline, sizeof(cmdline) - 1) < 0) { 25 perror("read /proc/cmdline"); 29 cmdline[sizeof(cmdline) - 1] = '\0'; 30 for (c = strtok(cmdline, " \n"); c; c = strtok(NULL, " \n")) {
|
/linux-master/arch/riscv/kernel/pi/ |
H A D | cmdline_early.c | 47 static u64 match_noXlvl(char *cmdline) argument 49 if (strstr(cmdline, "no4lvl")) 51 else if (strstr(cmdline, "no5lvl")) 59 char *cmdline = get_early_cmdline(dtb_pa); local 61 return match_noXlvl(cmdline); 64 static bool match_nokaslr(char *cmdline) argument 66 return strstr(cmdline, "nokaslr"); 71 char *cmdline = get_early_cmdline(dtb_pa); local 73 return match_nokaslr(cmdline);
|
/linux-master/arch/x86/lib/ |
H A D | cmdline.c | 4 * Misc librarized functions for cmdline poking. 10 #include <asm/cmdline.h> 20 * @cmdline: the cmdline string 21 * @max_cmdline_size: the maximum size of cmdline 26 * as an entire word in @cmdline. For instance, if @option="car" 27 * then a cmdline which contains "cart" will not match. 30 __cmdline_find_option_bool(const char *cmdline, int max_cmdline_size, argument 42 if (!cmdline) 47 * a non-NULL-terminated 'cmdline' 123 __cmdline_find_option(const char *cmdline, int max_cmdline_size, const char *option, char *buffer, int bufsize) argument 206 cmdline_find_option_bool(const char *cmdline, const char *option) argument 211 cmdline_find_option(const char *cmdline, const char *option, char *buffer, int bufsize) argument [all...] |
/linux-master/arch/mips/dec/prom/ |
H A D | Makefile | 7 lib-y += init.o memory.o cmdline.o identify.o console.o
|
/linux-master/include/linux/ |
H A D | crash_reserve.h | 17 int __init parse_crashkernel(char *cmdline, unsigned long long system_ram, 35 void __init reserve_crashkernel_generic(char *cmdline, 41 static inline void __init reserve_crashkernel_generic(char *cmdline, argument
|
/linux-master/arch/mips/fw/arc/ |
H A D | Makefile | 7 lib-y += cmdline.o 9 lib-y += cmdline.o env.o file.o identify.o init.o \
|
/linux-master/arch/xtensa/platforms/iss/ |
H A D | setup.c | 63 static char cmdline[COMMAND_LINE_SIZE] __initdata; 74 cmdline[0] = 0; 79 strcat(cmdline, " "); 80 strcat(cmdline, argv[i]); 82 *p_cmdline = cmdline;
|
/linux-master/drivers/gpu/drm/tests/ |
H A D | drm_cmdline_parser_test.c | 17 const char *cmdline = "e"; local 19 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, 35 const char *cmdline = "D"; local 37 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, 57 const char *cmdline = "D"; local 59 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, 79 const char *cmdline = "D"; local 81 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, 97 const char *cmdline = "d"; local 99 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, 115 const char *cmdline = "720x480"; local 137 const char *cmdline = "720x480M"; local 159 const char *cmdline = "720x480MR"; local 181 const char *cmdline = "720x480R"; local 203 const char *cmdline = "720x480-24"; local 226 const char *cmdline = "720x480@60"; local 249 const char *cmdline = "720x480-24@60"; local 273 const char *cmdline = "720x480-24@60i"; local 297 const char *cmdline = "720x480-24@60m"; local 321 const char *cmdline = "720x480-24@60d"; local 345 const char *cmdline = "720x480-24@60e"; local 369 const char *cmdline = "720x480-24@60D"; local 396 const char *cmdline = "720x480-24@60D"; local 420 const char *cmdline = "720x480-24@60ime"; local 444 const char *cmdline = "720x480me"; local 466 const char *cmdline = "720x480Mm"; local 488 const char *cmdline = "NTSC"; local 500 const char *cmdline = "NTSC-24"; local 515 const char *cmdline = "NTSC,rotate=180"; local 527 const char *cmdline = "NTSC-24,rotate=180"; local 541 const char *cmdline = "720x480,rotate=0"; local 564 const char *cmdline = "720x480,rotate=90"; local 587 const char *cmdline = "720x480,rotate=180"; local 610 const char *cmdline = "720x480,rotate=270"; local 633 const char *cmdline = "720x480,reflect_x"; local 656 const char *cmdline = "720x480,reflect_y"; local 679 const char *cmdline = local 706 const char *cmdline = "720x480,rotate=270,reflect_x"; local 729 const char *cmdline = "720x480-24e,rotate=180"; local 753 const char *cmdline = "720x480e,rotate=180"; local 775 const char *cmdline = "margin_right=14,margin_left=24,margin_bottom=36,margin_top=42"; local 798 const char *cmdline = "e,margin_right=14,margin_left=24,margin_bottom=36,margin_top=42"; local 821 const char *cmdline = "panel_orientation=upside_down"; local 840 const char *cmdline; member in struct:drm_cmdline_invalid_test 950 const char *cmdline; member in struct:drm_cmdline_tv_option_test [all...] |
H A D | drm_client_modeset_test.c | 92 const char *cmdline = "1920x1080@60"; local 99 drm_mode_parse_command_line_for_connector(cmdline, 115 const char *cmdline; member in struct:drm_connector_pick_cmdline_mode_test 121 .cmdline = _cmdline, \ 133 const char *cmdline = params->cmdline; local 137 drm_mode_parse_command_line_for_connector(cmdline, 167 sprintf(desc, "%s", t->cmdline);
|
/linux-master/kernel/ |
H A D | crash_reserve.c | 57 static int __init parse_crashkernel_mem(char *cmdline, argument 62 char *cur = cmdline, *tmp; 152 static int __init parse_crashkernel_simple(char *cmdline, argument 156 char *cur = cmdline; 158 *crash_size = memparse(cmdline, &cur); 159 if (cmdline == cur) { 190 static int __init parse_crashkernel_suffix(char *cmdline, argument 194 char *cur = cmdline; 196 *crash_size = memparse(cmdline, &cur); 197 if (cmdline 216 get_last_crashkernel(char *cmdline, const char *name, const char *suffix) argument 254 __parse_crashkernel(char *cmdline, unsigned long long system_ram, unsigned long long *crash_size, unsigned long long *crash_base, const char *suffix) argument 297 parse_crashkernel(char *cmdline, unsigned long long system_ram, unsigned long long *crash_size, unsigned long long *crash_base, unsigned long long *low_size, bool *high) argument 376 reserve_crashkernel_generic(char *cmdline, unsigned long long crash_size, unsigned long long crash_base, unsigned long long crash_low_size, bool high) argument [all...] |
/linux-master/arch/powerpc/boot/ |
H A D | cuboot.c | 25 loader_info.cmdline = (char *)r6;
|
H A D | ps3.c | 31 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable 36 if (cmdline[0] == '\0') 37 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); 39 setprop_str(chosen, "bootargs", cmdline); 41 printf("cmdline: '%s'\n", cmdline);
|
H A D | main.c | 193 static char cmdline[BOOT_COMMAND_LINE_SIZE] variable 203 n = getprop(chosen, "linux,cmdline-timeout", &v, sizeof(v)); 207 if (cmdline[0] == '\0') 208 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); 210 printf("\n\rLinux/PowerPC load: %s", cmdline); 214 console_ops.edit_cmdline(cmdline, BOOT_COMMAND_LINE_SIZE, getline_timeout); 219 setprop_str(chosen, "bootargs", cmdline); 237 if ((loader_info.cmdline_len > 0) && (cmdline[0] == '\0')) 238 memmove(cmdline, loader_info.cmdline, [all...] |
/linux-master/arch/parisc/include/asm/ |
H A D | kexec.h | 22 unsigned long cmdline; member in struct:kimage_arch
|
/linux-master/tools/perf/util/ |
H A D | cache.h | 20 int split_cmdline(char *cmdline, const char ***argv);
|
/linux-master/arch/microblaze/include/asm/ |
H A D | setup.h | 19 void machine_early_init(const char *cmdline, unsigned int ram,
|
/linux-master/tools/testing/selftests/livepatch/ |
H A D | test-livepatch.sh | 13 # - load a livepatch that modifies the output from /proc/cmdline and 21 if [[ "$(cat /proc/cmdline)" != "$MOD_LIVEPATCH: this has been live patched" ]] ; then 29 if [[ "$(cat /proc/cmdline)" == "$MOD_LIVEPATCH: this has been live patched" ]] ; then 48 # - load a livepatch that modifies the output from /proc/cmdline and 58 grep 'live patched' /proc/cmdline > /dev/kmsg 63 grep 'live patched' /proc/cmdline > /dev/kmsg 69 grep 'live patched' /proc/cmdline > /dev/kmsg 75 grep 'live patched' /proc/cmdline > /dev/kmsg 108 # - load a livepatch that modifies the output from /proc/cmdline and 119 grep 'live patched' /proc/cmdline > /de [all...] |
/linux-master/arch/arm64/kernel/pi/ |
H A D | idreg-override.c | 242 static int __init find_field(const char *cmdline, char *opt, int len, argument 252 if (memcmp(cmdline, opt, len)) 255 return parse_hexdigit(cmdline + len, v); 258 static void __init match_options(const char *cmdline) argument 282 if (find_field(cmdline, opt, len, reg, f, &v)) 306 static __init void __parse_cmdline(const char *cmdline, bool parse_aliases) argument 313 cmdline = skip_spaces(cmdline); 316 if (cmdline[0] == '-' && cmdline[ [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | env.c | 26 char *cmdline = early_memremap_ro(fw_arg1, COMMAND_LINE_SIZE); local 33 strscpy(boot_command_line, cmdline, COMMAND_LINE_SIZE); 34 strscpy(init_command_line, cmdline, COMMAND_LINE_SIZE); 35 early_memunmap(cmdline, COMMAND_LINE_SIZE);
|
/linux-master/drivers/firmware/efi/libstub/ |
H A D | gop.c | 36 } cmdline = { .option = EFI_CMDLINE_NONE }; variable in typeref:struct:__anon278 48 cmdline.option = EFI_CMDLINE_MODE_NUM; 49 cmdline.mode = m; 81 cmdline.option = EFI_CMDLINE_RES; 82 cmdline.res.width = w; 83 cmdline.res.height = h; 84 cmdline.res.format = pf; 85 cmdline.res.depth = d; 98 cmdline.option = EFI_CMDLINE_AUTO; 111 cmdline [all...] |
H A D | file.c | 95 static int find_file_option(const efi_char16_t *cmdline, int cmdline_len, argument 104 if (!memcmp(&cmdline[i - prefix_len], prefix, prefix_size)) { 114 while (i < cmdline_len && (cmdline[i] == L'/' || cmdline[i] == L'\\')) 118 efi_char16_t c = cmdline[i++]; 179 * Check the cmdline for a LILO-style file= arguments. 192 const efi_char16_t *cmdline = efi_table_attr(image, load_options); local 205 efi_apply_loadoptions_quirk((const void **)&cmdline, &cmdline_len); 206 cmdline_len /= sizeof(*cmdline); 217 offset = find_file_option(cmdline, cmdline_le [all...] |
/linux-master/tools/build/ |
H A D | fixdep.c | 26 char *cmdline; variable 30 fprintf(stderr, "Usage: fixdep <depfile> <target> <cmdline>\n"); 39 printf("cmd_%s := %s\n\n", target, cmdline); 164 cmdline = argv[3];
|
/linux-master/drivers/video/fbdev/core/ |
H A D | fb_cmdline.c | 22 #include <video/cmdline.h>
|
/linux-master/arch/parisc/kernel/ |
H A D | kexec_file.c | 18 unsigned long initrd_len, char *cmdline, 59 if (cmdline != NULL) { 60 kbuf.buffer = cmdline; 71 kexec_dprintk("Loaded cmdline at 0x%lx\n", kbuf.mem); 72 image->arch.cmdline = kbuf.mem; 16 elf_load(struct kimage *image, char *kernel_buf, unsigned long kernel_len, char *initrd, unsigned long initrd_len, char *cmdline, unsigned long cmdline_len) argument
|