]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kexec: introduce kexec_ops struct
authorDaniel Kiper <daniel.kiper@oracle.com>
Tue, 20 Nov 2012 15:04:43 +0000 (16:04 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 27 May 2013 17:49:12 +0000 (19:49 +0200)
commite64a0406a4afa01d8f6f05ced3780f196b83a714
tree37c1fba542fcde5618acfedc9904b2c9436fd26f
parent1ad14b8010859f8ef263c22978d3848a5afeb074
kexec: introduce kexec_ops struct

Some kexec/kdump implementations (e.g. Xen PVOPS) could not use default
functions or require some changes in behavior of kexec/kdump generic code.
To cope with that problem kexec_ops struct was introduced. It allows
a developer to replace all or some functions and control some
functionality of kexec/kdump generic code.

Default behavior of kexec/kdump generic code is not changed.

v2 - suggestions/fixes:
   - add comment for kexec_ops.crash_alloc_temp_store member
     (suggested by Konrad Rzeszutek Wilk),
   - simplify kexec_ops usage
     (suggested by Konrad Rzeszutek Wilk).

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
include/linux/kexec.h
kernel/kexec.c