]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Add a sysfs file to determine if a kexec kernel is loaded
authorJeff Moyer <jmoyer@redhat.com>
Fri, 23 Jun 2006 09:05:07 +0000 (02:05 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:43:02 +0000 (07:43 -0700)
commit700d91651c07c7231d023a0ab9e3d82734ae89c4
treeaad52aa4e127c366ca185c2122650d7dbb3437a0
parent5fdcc9562aa4a0f53f131361b002dd1bcc19789c
[PATCH] Add a sysfs file to determine if a kexec kernel is loaded

Create two files in /sys/kernel, kexec_loaded and kexec_crash_loaded.  Each
file contains a simple boolean value indicating whether the relevant kernel
has been loaded into memory.  The motivation for this is geared around
support.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/kexec.h
kernel/kexec.c
kernel/ksysfs.c