The previous commit ("kexec: move sysfs entries to /sys/kernel/kexec")
moved all existing kexec sysfs entries to a new location. The ABI
document is updated to include a note about the deprecation of the old
kexec sysfs entries.

The following kexec sysfs entries are deprecated:
- /sys/kernel/kexec_loaded
- /sys/kernel/kexec_crash_loaded
- /sys/kernel/kexec_crash_size
- /sys/kernel/crash_elfcorehdr_size

Cc: Aditya Gupta <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Baoquan he <[email protected]>
Cc: Dave Young <[email protected]>
Cc: Hari Bathini <[email protected]>
Cc: Jiri Bohac <[email protected]>
Cc: Madhavan Srinivasan <[email protected]>
Cc: Mahesh J Salgaonkar <[email protected]>
Cc: Pingfan Liu <[email protected]>
Cc: Ritesh Harjani (IBM) <[email protected]>
Cc: Shivang Upadhyay <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Sourabh Jain <[email protected]>
---
 .../ABI/obsolete/sysfs-kernel-kexec-kdump     | 59 +++++++++++++++++++
 .../ABI/testing/sysfs-kernel-kexec-kdump      | 44 --------------
 2 files changed, 59 insertions(+), 44 deletions(-)
 create mode 100644 Documentation/ABI/obsolete/sysfs-kernel-kexec-kdump

diff --git a/Documentation/ABI/obsolete/sysfs-kernel-kexec-kdump 
b/Documentation/ABI/obsolete/sysfs-kernel-kexec-kdump
new file mode 100644
index 000000000000..96b4d41721cc
--- /dev/null
+++ b/Documentation/ABI/obsolete/sysfs-kernel-kexec-kdump
@@ -0,0 +1,59 @@
+NOTE: all the ABIs listed in this file are deprecated and will be removed 
after 2028.
+
+Here are the alternative ABIs:
++------------------------------------+-----------------------------------------+
+| Deprecated                         | Alternative                             
|
++------------------------------------+-----------------------------------------+
+| /sys/kernel/kexec_loaded           | /sys/kernel/kexec/loaded                
|
++------------------------------------+-----------------------------------------+
+| /sys/kernel/kexec_crash_loaded     | /sys/kernel/kexec/crash_loaded          
|
++------------------------------------+-----------------------------------------+
+| /sys/kernel/kexec_crash_size       | /sys/kernel/kexec/crash_size            
|
++------------------------------------+-----------------------------------------+
+| /sys/kernel/crash_elfcorehdr_size  | /sys/kernel/kexec/crash_elfcorehdr_size 
|
++------------------------------------+-----------------------------------------+
+
+
+What:          /sys/kernel/kexec_loaded
+Date:          Jun 2006
+Contact:       [email protected]
+Description:   read only
+               Indicates whether a new kernel image has been loaded
+               into memory using the kexec system call. It shows 1 if
+               a kexec image is present and ready to boot, or 0 if none
+               is loaded.
+User:          kexec tools, kdump service
+
+What:          /sys/kernel/kexec_crash_loaded
+Date:          Jun 2006
+Contact:       [email protected]
+Description:   read only
+               Indicates whether a crash (kdump) kernel is currently
+               loaded into memory. It shows 1 if a crash kernel has been
+               successfully loaded for panic handling, or 0 if no crash
+               kernel is present.
+User:          Kexec tools, Kdump service
+
+What:          /sys/kernel/kexec_crash_size
+Date:          Dec 2009
+Contact:       [email protected]
+Description:   read/write
+               Shows the amount of memory reserved for loading the crash
+               (kdump) kernel. It reports the size, in bytes, of the
+               crash kernel area defined by the crashkernel= parameter.
+               This interface also allows reducing the crashkernel
+               reservation by writing a smaller value, and the reclaimed
+               space is added back to the system RAM.
+User:          Kdump service
+
+What:          /sys/kernel/crash_elfcorehdr_size
+Date:          Aug 2023
+Contact:       [email protected]
+Description:   read only
+               Indicates the preferred size of the memory buffer for the
+               ELF core header used by the crash (kdump) kernel. It defines
+               how much space is needed to hold metadata about the crashed
+               system, including CPU and memory information. This information
+               is used by the user space utility kexec to support updating the
+               in-kernel kdump image during hotplug operations.
+User:          Kexec tools
diff --git a/Documentation/ABI/testing/sysfs-kernel-kexec-kdump 
b/Documentation/ABI/testing/sysfs-kernel-kexec-kdump
index 320ec75a4903..7e5e528665db 100644
--- a/Documentation/ABI/testing/sysfs-kernel-kexec-kdump
+++ b/Documentation/ABI/testing/sysfs-kernel-kexec-kdump
@@ -1,47 +1,3 @@
-What:          /sys/kernel/kexec_loaded
-Date:          Jun 2006
-Contact:       [email protected]
-Description:   read only
-               Indicates whether a new kernel image has been loaded
-               into memory using the kexec system call. It shows 1 if
-               a kexec image is present and ready to boot, or 0 if none
-               is loaded.
-User:          kexec tools, kdump service
-
-What:          /sys/kernel/kexec_crash_loaded
-Date:          Jun 2006
-Contact:       [email protected]
-Description:   read only
-               Indicates whether a crash (kdump) kernel is currently
-               loaded into memory. It shows 1 if a crash kernel has been
-               successfully loaded for panic handling, or 0 if no crash
-               kernel is present.
-User:          Kexec tools, Kdump service
-
-What:          /sys/kernel/kexec_crash_size
-Date:          Dec 2009
-Contact:       [email protected]
-Description:   read/write
-               Shows the amount of memory reserved for loading the crash
-               (kdump) kernel. It reports the size, in bytes, of the
-               crash kernel area defined by the crashkernel= parameter.
-               This interface also allows reducing the crashkernel
-               reservation by writing a smaller value, and the reclaimed
-               space is added back to the system RAM.
-User:          Kdump service
-
-What:          /sys/kernel/crash_elfcorehdr_size
-Date:          Aug 2023
-Contact:       [email protected]
-Description:   read only
-               Indicates the preferred size of the memory buffer for the
-               ELF core header used by the crash (kdump) kernel. It defines
-               how much space is needed to hold metadata about the crashed
-               system, including CPU and memory information. This information
-               is used by the user space utility kexec to support updating the
-               in-kernel kdump image during hotplug operations.
-User:          Kexec tools
-
 What:          /sys/kernel/kexec/crash_cma_ranges
 Date:          Nov 2025
 Contact:       [email protected]
-- 
2.51.1


Reply via email to