Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation/ABI: add kexec and kdump sysfs interface

Add an ABI document for following kexec and kdump sysfs interface:
- /sys/kernel/kexec_loaded
- /sys/kernel/kexec_crash_loaded
- /sys/kernel/kexec_crash_size
- /sys/kernel/crash_elfcorehdr_size

Link: https://lkml.kernel.org/r/20251117035153.1199665-1-sourabhjain@linux.ibm.com
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Cc: Aditya Gupta <adityag@linux.ibm.com>
Cc: Baoquan he <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Hari Bathini <hbathini@linux.ibm.com>
Cc: Jiri Bohac <jbohac@suse.cz>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Mahesh J Salgaonkar <mahesh@linux.ibm.com>
Cc: Pingfan Liu <piliu@redhat.com>
Cc: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Cc: Shivang Upadhyay <shivangu@linux.ibm.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sourabh Jain and committed by
Andrew Morton
fdd76c8d b1b72ac2

+43
+43
Documentation/ABI/testing/sysfs-kernel-kexec-kdump
··· 1 + What: /sys/kernel/kexec_loaded 2 + Date: Jun 2006 3 + Contact: kexec@lists.infradead.org 4 + Description: read only 5 + Indicates whether a new kernel image has been loaded 6 + into memory using the kexec system call. It shows 1 if 7 + a kexec image is present and ready to boot, or 0 if none 8 + is loaded. 9 + User: kexec tools, kdump service 10 + 11 + What: /sys/kernel/kexec_crash_loaded 12 + Date: Jun 2006 13 + Contact: kexec@lists.infradead.org 14 + Description: read only 15 + Indicates whether a crash (kdump) kernel is currently 16 + loaded into memory. It shows 1 if a crash kernel has been 17 + successfully loaded for panic handling, or 0 if no crash 18 + kernel is present. 19 + User: Kexec tools, Kdump service 20 + 21 + What: /sys/kernel/kexec_crash_size 22 + Date: Dec 2009 23 + Contact: kexec@lists.infradead.org 24 + Description: read/write 25 + Shows the amount of memory reserved for loading the crash 26 + (kdump) kernel. It reports the size, in bytes, of the 27 + crash kernel area defined by the crashkernel= parameter. 28 + This interface also allows reducing the crashkernel 29 + reservation by writing a smaller value, and the reclaimed 30 + space is added back to the system RAM. 31 + User: Kdump service 32 + 33 + What: /sys/kernel/crash_elfcorehdr_size 34 + Date: Aug 2023 35 + Contact: kexec@lists.infradead.org 36 + Description: read only 37 + Indicates the preferred size of the memory buffer for the 38 + ELF core header used by the crash (kdump) kernel. It defines 39 + how much space is needed to hold metadata about the crashed 40 + system, including CPU and memory information. This information 41 + is used by the user space utility kexec to support updating the 42 + in-kernel kdump image during hotplug operations. 43 + User: Kexec tools