[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)
commitc330dda908b5a46469a997eea90b66f2f9f02b34
treeaad52aa4e127c366ca185c2122650d7dbb3437a0
parent24bbb1faf3f0420eb252dd0fdc1e477b1d4d73bd
[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