#
# MODRESTORE configuration
#

menuconfig EULEROS_MODRESTORE_SUPPORT
	bool "the module restoration support"
	depends on ARM64 || X86_64
	default n
	help
	  Some state of modules needs to keep during the module upgrading
	  process. It provides the fundamental mechanism to make the module
	  store the information which needs to keep.

if EULEROS_MODRESTORE_SUPPORT

config EULEROS_MODRESTORE_MEMORY
	bool "the memory management mechanism support for module restore"
	default y
	help
	  The module suspend/resume need save some state. This module is used
	  to manage the memory space used by the module suspend/resume.

config EULEROS_MODRESTORE_NOTIFY
	bool "the notifier call chains"
	depends on EULEROS_MODRESTORE_MEMORY
	default y
	help
	  There are 7 (6+1) types notifier chains that are need notice during
	  tasks or modules restarting process.
	  - nvwa notifier chains: There are 6 types notifier chains spreading
	    over tasks checkpoint/restore processes. Call those notifer chains
	    in specific point to notify the drivers do some works.
	  - anonymous inode mapping notifier chain: to recover the anonymous
	    inode.

config EULEROS_DUPFD
	bool "export symbol `f_dupfd`"
	depends on ARM64
	default n
	help
	  The storage module need symbol `f_dupfd()`, but it doesn't belong to
	  export series. Custome export symbol `mures_f_dupfd()` to wrapper the
	  original.

endif # EULEROS_MODRESTORE_SUPPORT
