40 lines · plain
1What: /sys/kernel/boot_params2Date: December 20133Contact: Dave Young <dyoung@redhat.com>4Description: The /sys/kernel/boot_params directory contains two5 files: "data" and "version" and one subdirectory "setup_data".6 It is used to export the kernel boot parameters of an x867 platform to userspace for kexec and debugging purpose.8 9 If there's no setup_data in boot_params the subdirectory will10 not be created.11 12 "data" file is the binary representation of struct boot_params.13 14 "version" file is the string representation of boot15 protocol version.16 17 "setup_data" subdirectory contains the setup_data data18 structure in boot_params. setup_data is maintained in kernel19 as a link list. In "setup_data" subdirectory there's one20 subdirectory for each link list node named with the number21 of the list nodes. The list node subdirectory contains two22 files "type" and "data". "type" file is the string23 representation of setup_data type. "data" file is the binary24 representation of setup_data payload.25 26 The whole boot_params directory structure is like below::27 28 /sys/kernel/boot_params29 |__ data30 |__ setup_data31 | |__ 032 | | |__ data33 | | |__ type34 | |__ 135 | |__ data36 | |__ type37 |__ version38 39Users: Kexec40