Searched refs:BOOTCONFIG_MAGIC_LEN (Results 1 – 3 of 3) sorted by relevance
/linux/tools/bootconfig/ |
A D | main.c | 181 char magic[BOOTCONFIG_MAGIC_LEN]; in load_xbc_from_initrd() 188 if (stat.st_size < 8 + BOOTCONFIG_MAGIC_LEN) in load_xbc_from_initrd() 191 if (lseek(fd, -BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0) in load_xbc_from_initrd() 194 if (read(fd, magic, BOOTCONFIG_MAGIC_LEN) < 0) in load_xbc_from_initrd() 198 if (memcmp(magic, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN) != 0) in load_xbc_from_initrd() 201 if (lseek(fd, -(8 + BOOTCONFIG_MAGIC_LEN), SEEK_END) < 0) in load_xbc_from_initrd() 213 if (stat.st_size < size + 8 + BOOTCONFIG_MAGIC_LEN) { in load_xbc_from_initrd() 218 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd() 349 - size - 8 - BOOTCONFIG_MAGIC_LEN); in delete_xbc() 440 memcpy(p, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN); in apply_xbc() [all …]
|
/linux/include/linux/ |
A D | bootconfig.h | 24 #define BOOTCONFIG_MAGIC_LEN 12 macro
|
/linux/init/ |
A D | main.c | 278 data = (char *)initrd_end - BOOTCONFIG_MAGIC_LEN; in get_boot_config_from_initrd() 284 if (!memcmp(data, BOOTCONFIG_MAGIC, BOOTCONFIG_MAGIC_LEN)) in get_boot_config_from_initrd()
|
Completed in 7 milliseconds