projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ad2fd
)
module: add MODULE_STATE_LIVE notify
author
Masami Hiramatsu
<
[email protected]
>
Tue, 6 Jan 2009 22:41:54 +0000
(14:41 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 6 Jan 2009 23:59:21 +0000
(15:59 -0800)
Add a module notifier call which notifies that the state of a module
changes from MODULE_STATE_COMING to MODULE_STATE_LIVE.
Signed-off-by: Masami Hiramatsu <
[email protected]
>
Cc: Ananth N Mavinakayanahalli <
[email protected]
>
Cc: Anil S Keshavamurthy <
[email protected]
>
Acked-by: Rusty Russell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/module.c
patch
|
blob
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index cc79c942c572c872d3e68c8d656563e2620fe0e4..496dcb57b608e0e6c60ebc5a1be002761bdf66a2 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-2352,6
+2352,8
@@
sys_init_module(void __user *umod,
/* Now it's a first class citizen! Wake up anyone waiting for it. */
mod->state = MODULE_STATE_LIVE;
wake_up(&module_wq);
+ blocking_notifier_call_chain(&module_notify_list,
+ MODULE_STATE_LIVE, mod);
mutex_lock(&module_mutex);
/* Drop initial reference. */