|
@@ -313,8 +313,11 @@ struct load_info {
|
|
} index;
|
|
} index;
|
|
};
|
|
};
|
|
|
|
|
|
-/* We require a truly strong try_module_get(): 0 means failure due to
|
|
|
|
- ongoing or failed initialization etc. */
|
|
|
|
|
|
+/*
|
|
|
|
+ * We require a truly strong try_module_get(): 0 means success.
|
|
|
|
+ * Otherwise an error is returned due to ongoing or failed
|
|
|
|
+ * initialization etc.
|
|
|
|
+ */
|
|
static inline int strong_try_module_get(struct module *mod)
|
|
static inline int strong_try_module_get(struct module *mod)
|
|
{
|
|
{
|
|
BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED);
|
|
BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED);
|