15039e316SDave YoungWhat: /sys/kernel/boot_params 25039e316SDave YoungDate: December 2013 35039e316SDave YoungContact: Dave Young <dyoung@redhat.com> 45039e316SDave YoungDescription: The /sys/kernel/boot_params directory contains two 55039e316SDave Young files: "data" and "version" and one subdirectory "setup_data". 65039e316SDave Young It is used to export the kernel boot parameters of an x86 75039e316SDave Young platform to userspace for kexec and debugging purpose. 85039e316SDave Young 95039e316SDave Young If there's no setup_data in boot_params the subdirectory will 105039e316SDave Young not be created. 115039e316SDave Young 125039e316SDave Young "data" file is the binary representation of struct boot_params. 135039e316SDave Young 145039e316SDave Young "version" file is the string representation of boot 155039e316SDave Young protocol version. 165039e316SDave Young 175039e316SDave Young "setup_data" subdirectory contains the setup_data data 185039e316SDave Young structure in boot_params. setup_data is maintained in kernel 195039e316SDave Young as a link list. In "setup_data" subdirectory there's one 205039e316SDave Young subdirectory for each link list node named with the number 215039e316SDave Young of the list nodes. The list node subdirectory contains two 225039e316SDave Young files "type" and "data". "type" file is the string 235039e316SDave Young representation of setup_data type. "data" file is the binary 245039e316SDave Young representation of setup_data payload. 255039e316SDave Young 2634433332SMauro Carvalho Chehab The whole boot_params directory structure is like below:: 2734433332SMauro Carvalho Chehab 285039e316SDave Young /sys/kernel/boot_params 295039e316SDave Young |__ data 305039e316SDave Young |__ setup_data 315039e316SDave Young | |__ 0 325039e316SDave Young | | |__ data 335039e316SDave Young | | |__ type 345039e316SDave Young | |__ 1 355039e316SDave Young | |__ data 365039e316SDave Young | |__ type 375039e316SDave Young |__ version 385039e316SDave Young 395039e316SDave YoungUsers: Kexec 40