mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
52441fa8f2
commit
0d21b0e347
3 changed files with 59 additions and 10 deletions
|
@ -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. */
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue