Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 3 of 3) sorted by relevance

/init/
Ddo_mounts_rd.c67 unsigned char *buf; in identify_ramdisk_image() local
72 buf = kmalloc(size, GFP_KERNEL); in identify_ramdisk_image()
73 if (!buf) in identify_ramdisk_image()
76 minixsb = (struct minix_super_block *) buf; in identify_ramdisk_image()
77 romfsb = (struct romfs_super_block *) buf; in identify_ramdisk_image()
78 cramfsb = (struct cramfs_super *) buf; in identify_ramdisk_image()
79 squashfsb = (struct squashfs_super_block *) buf; in identify_ramdisk_image()
80 memset(buf, 0xe5, size); in identify_ramdisk_image()
86 kernel_read(file, buf, size, &pos); in identify_ramdisk_image()
88 *decompressor = decompress_method(buf, size, &compress_name); in identify_ramdisk_image()
[all …]
Dinitramfs.c173 char buf[9]; in parse_header() local
176 buf[8] = '\0'; in parse_header()
178 memcpy(buf, s, 8); in parse_header()
179 parsed[i] = simple_strtoul(buf, NULL, 16); in parse_header()
222 static void __init read_into(char *buf, unsigned size, enum state next) in read_into() argument
229 collect = collected = buf; in read_into()
427 static long __init write_buffer(char *buf, unsigned long len) in write_buffer() argument
430 victim = buf; in write_buffer()
439 char *buf = (char *) bufv; in flush_buffer() local
444 while ((written = write_buffer(buf, len)) < len && !message) { in flush_buffer()
[all …]
Dmain.c325 static int __init xbc_snprint_cmdline(char *buf, size_t size, in xbc_snprint_cmdline() argument
329 char *end = buf + size; in xbc_snprint_cmdline()
341 ret = snprintf(buf, rest(buf, end), "%s ", xbc_namebuf); in xbc_snprint_cmdline()
344 buf += ret; in xbc_snprint_cmdline()
348 ret = snprintf(buf, rest(buf, end), "%s=\"%s\" ", in xbc_snprint_cmdline()
352 buf += ret; in xbc_snprint_cmdline()
356 return buf - (end - size); in xbc_snprint_cmdline()
870 static int __init early_randomize_kstack_offset(char *buf) in early_randomize_kstack_offset() argument
875 ret = kstrtobool(buf, &bool_result); in early_randomize_kstack_offset()
1162 char *buf; member
[all …]