summaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2013-01-12 11:38:44 +1030
committerRusty Russell <rusty@rustcorp.com.au>2013-01-12 13:27:05 +1030
commit0d21b0e3477395e7ff2acc269f15df6e6a8d356d (patch)
tree116c1a198a36f7ec80cf39e8f307175344290612 /include/linux/module.h
parent52441fa8f2f1ccc9fa97607c6ccf8b46b9fd15ae (diff)
downloadlinux-stable-0d21b0e3477395e7ff2acc269f15df6e6a8d356d.tar.gz
linux-stable-0d21b0e3477395e7ff2acc269f15df6e6a8d356d.tar.bz2
linux-stable-0d21b0e3477395e7ff2acc269f15df6e6a8d356d.zip
module: add new state MODULE_STATE_UNFORMED.
You should never look at such a module, so it's excised from all paths which traverse the modules list. We add the state at the end, to avoid gratuitous ABI break (ksplice). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 7760c6d344a3..1375ee3f03aa 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -199,11 +199,11 @@ struct module_use {
struct module *source, *target;
};
-enum module_state
-{
- MODULE_STATE_LIVE,
- MODULE_STATE_COMING,
- MODULE_STATE_GOING,
+enum module_state {
+ MODULE_STATE_LIVE, /* Normal state. */
+ MODULE_STATE_COMING, /* Full formed, running module_init. */
+ MODULE_STATE_GOING, /* Going away. */
+ MODULE_STATE_UNFORMED, /* Still setting it up. */
};
/**