Lines Matching refs:state
320 BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED); in strong_try_module_get()
321 if (mod && mod->state == MODULE_STATE_COMING) in strong_try_module_get()
479 if (mod->state == MODULE_STATE_UNFORMED) in each_symbol_section()
598 if (!even_unformed && mod->state == MODULE_STATE_UNFORMED) in find_module_all()
680 if (mod->state == MODULE_STATE_UNFORMED) in is_module_percpu_address()
908 mod->state = MODULE_STATE_GOING; in try_stop_module()
961 if (mod->state != MODULE_STATE_LIVE) { in SYSCALL_DEFINE2()
1165 const char *state = "unknown"; in show_initstate() local
1167 switch (mk->mod->state) { in show_initstate()
1169 state = "live"; in show_initstate()
1172 state = "coming"; in show_initstate()
1175 state = "going"; in show_initstate()
1180 return sprintf(buffer, "%s\n", state); in show_initstate()
1966 if (mod->state == MODULE_STATE_UNFORMED) in set_all_modules_text_rw()
1985 if (mod->state == MODULE_STATE_UNFORMED) in set_all_modules_text_ro()
2114 mod->state = MODULE_STATE_UNFORMED; in free_module()
3365 ret = !mod || mod->state == MODULE_STATE_LIVE in finished_loading()
3366 || mod->state == MODULE_STATE_GOING; in finished_loading()
3436 mod->state = MODULE_STATE_LIVE; in do_init_module()
3493 mod->state = MODULE_STATE_GOING; in do_init_module()
3523 mod->state = MODULE_STATE_UNFORMED; in add_unformed_module()
3529 if (old->state == MODULE_STATE_COMING in add_unformed_module()
3530 || old->state == MODULE_STATE_UNFORMED) { in add_unformed_module()
3572 mod->state = MODULE_STATE_COMING; in complete_formation()
3945 if (mod->state == MODULE_STATE_UNFORMED) in lookup_module_symbol_name()
3970 if (mod->state == MODULE_STATE_UNFORMED) in lookup_module_symbol_attrs()
4000 if (mod->state == MODULE_STATE_UNFORMED) in module_get_kallsym()
4044 if (mod->state == MODULE_STATE_UNFORMED) in module_kallsyms_lookup_name()
4068 if (mod->state == MODULE_STATE_UNFORMED) in module_kallsyms_on_each_symbol()
4101 BUG_ON(mod->state == MODULE_STATE_UNFORMED); in module_flags()
4103 mod->state == MODULE_STATE_GOING || in module_flags()
4104 mod->state == MODULE_STATE_COMING) { in module_flags()
4108 if (mod->state == MODULE_STATE_GOING) in module_flags()
4111 if (mod->state == MODULE_STATE_COMING) in module_flags()
4144 if (mod->state == MODULE_STATE_UNFORMED) in m_show()
4153 mod->state == MODULE_STATE_GOING ? "Unloading" : in m_show()
4154 mod->state == MODULE_STATE_COMING ? "Loading" : in m_show()
4207 if (mod->state == MODULE_STATE_UNFORMED) in search_module_extables()
4262 if (mod->state == MODULE_STATE_UNFORMED) in __module_address()
4318 if (mod->state == MODULE_STATE_UNFORMED) in print_modules()