18c2ecf20Sopenharmony_ciWhat:		/sys/kernel/boot_params
28c2ecf20Sopenharmony_ciDate:		December 2013
38c2ecf20Sopenharmony_ciContact:	Dave Young <dyoung@redhat.com>
48c2ecf20Sopenharmony_ciDescription:	The /sys/kernel/boot_params directory contains two
58c2ecf20Sopenharmony_ci		files: "data" and "version" and one subdirectory "setup_data".
68c2ecf20Sopenharmony_ci		It is used to export the kernel boot parameters of an x86
78c2ecf20Sopenharmony_ci		platform to userspace for kexec and debugging purpose.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci		If there's no setup_data in boot_params the subdirectory will
108c2ecf20Sopenharmony_ci		not be created.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci		"data" file is the binary representation of struct boot_params.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci		"version" file is the string representation of boot
158c2ecf20Sopenharmony_ci		protocol version.
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci		"setup_data" subdirectory contains the setup_data data
188c2ecf20Sopenharmony_ci		structure in boot_params. setup_data is maintained in kernel
198c2ecf20Sopenharmony_ci		as a link list. In "setup_data" subdirectory there's one
208c2ecf20Sopenharmony_ci		subdirectory for each link list node named with the number
218c2ecf20Sopenharmony_ci		of the list nodes. The list node subdirectory contains two
228c2ecf20Sopenharmony_ci		files "type" and "data". "type" file is the string
238c2ecf20Sopenharmony_ci		representation of setup_data type. "data" file is the binary
248c2ecf20Sopenharmony_ci		representation of setup_data payload.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci		The whole boot_params directory structure is like below::
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci		  /sys/kernel/boot_params
298c2ecf20Sopenharmony_ci		  |__ data
308c2ecf20Sopenharmony_ci		  |__ setup_data
318c2ecf20Sopenharmony_ci		  |   |__ 0
328c2ecf20Sopenharmony_ci		  |   |   |__ data
338c2ecf20Sopenharmony_ci		  |   |   |__ type
348c2ecf20Sopenharmony_ci		  |   |__ 1
358c2ecf20Sopenharmony_ci		  |       |__ data
368c2ecf20Sopenharmony_ci		  |       |__ type
378c2ecf20Sopenharmony_ci		  |__ version
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciUsers:		Kexec
40