sysfs-kernel-boot_params 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. What: /sys/kernel/boot_params
  2. Date: December 2013
  3. Contact: Dave Young <dyoung@redhat.com>
  4. Description: The /sys/kernel/boot_params directory contains two
  5. files: "data" and "version" and one subdirectory "setup_data".
  6. It is used to export the kernel boot parameters of an x86
  7. platform to userspace for kexec and debugging purpose.
  8. If there's no setup_data in boot_params the subdirectory will
  9. not be created.
  10. "data" file is the binary representation of struct boot_params.
  11. "version" file is the string representation of boot
  12. protocol version.
  13. "setup_data" subdirectory contains the setup_data data
  14. structure in boot_params. setup_data is maintained in kernel
  15. as a link list. In "setup_data" subdirectory there's one
  16. subdirectory for each link list node named with the number
  17. of the list nodes. The list node subdirectory contains two
  18. files "type" and "data". "type" file is the string
  19. representation of setup_data type. "data" file is the binary
  20. representation of setup_data payload.
  21. The whole boot_params directory structure is like below:
  22. /sys/kernel/boot_params
  23. |__ data
  24. |__ setup_data
  25. | |__ 0
  26. | | |__ data
  27. | | |__ type
  28. | |__ 1
  29. | |__ data
  30. | |__ type
  31. |__ version
  32. Users: Kexec