162306a36Sopenharmony_ciWhat:		/sys/kernel/boot_params
262306a36Sopenharmony_ciDate:		December 2013
362306a36Sopenharmony_ciContact:	Dave Young <dyoung@redhat.com>
462306a36Sopenharmony_ciDescription:	The /sys/kernel/boot_params directory contains two
562306a36Sopenharmony_ci		files: "data" and "version" and one subdirectory "setup_data".
662306a36Sopenharmony_ci		It is used to export the kernel boot parameters of an x86
762306a36Sopenharmony_ci		platform to userspace for kexec and debugging purpose.
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci		If there's no setup_data in boot_params the subdirectory will
1062306a36Sopenharmony_ci		not be created.
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci		"data" file is the binary representation of struct boot_params.
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci		"version" file is the string representation of boot
1562306a36Sopenharmony_ci		protocol version.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci		"setup_data" subdirectory contains the setup_data data
1862306a36Sopenharmony_ci		structure in boot_params. setup_data is maintained in kernel
1962306a36Sopenharmony_ci		as a link list. In "setup_data" subdirectory there's one
2062306a36Sopenharmony_ci		subdirectory for each link list node named with the number
2162306a36Sopenharmony_ci		of the list nodes. The list node subdirectory contains two
2262306a36Sopenharmony_ci		files "type" and "data". "type" file is the string
2362306a36Sopenharmony_ci		representation of setup_data type. "data" file is the binary
2462306a36Sopenharmony_ci		representation of setup_data payload.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci		The whole boot_params directory structure is like below::
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci		  /sys/kernel/boot_params
2962306a36Sopenharmony_ci		  |__ data
3062306a36Sopenharmony_ci		  |__ setup_data
3162306a36Sopenharmony_ci		  |   |__ 0
3262306a36Sopenharmony_ci		  |   |   |__ data
3362306a36Sopenharmony_ci		  |   |   |__ type
3462306a36Sopenharmony_ci		  |   |__ 1
3562306a36Sopenharmony_ci		  |       |__ data
3662306a36Sopenharmony_ci		  |       |__ type
3762306a36Sopenharmony_ci		  |__ version
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ciUsers:		Kexec
40