Lines Matching refs:mod_fail

208 static const char *mod_fail_to_str(struct mod_fail_load *mod_fail)  in mod_fail_to_str()  argument
210 if (test_bit(FAIL_DUP_MOD_BECOMING, &mod_fail->dup_fail_mask) && in mod_fail_to_str()
211 test_bit(FAIL_DUP_MOD_LOAD, &mod_fail->dup_fail_mask)) in mod_fail_to_str()
213 if (test_bit(FAIL_DUP_MOD_BECOMING, &mod_fail->dup_fail_mask)) in mod_fail_to_str()
215 if (test_bit(FAIL_DUP_MOD_LOAD, &mod_fail->dup_fail_mask)) in mod_fail_to_str()
242 struct mod_fail_load *mod_fail; in try_add_failed_module() local
244 list_for_each_entry_rcu(mod_fail, &dup_failed_modules, list, in try_add_failed_module()
246 if (!strcmp(mod_fail->name, name)) { in try_add_failed_module()
247 atomic_long_inc(&mod_fail->count); in try_add_failed_module()
248 __set_bit(reason, &mod_fail->dup_fail_mask); in try_add_failed_module()
253 mod_fail = kzalloc(sizeof(*mod_fail), GFP_KERNEL); in try_add_failed_module()
254 if (!mod_fail) in try_add_failed_module()
256 memcpy(mod_fail->name, name, strlen(name)); in try_add_failed_module()
257 __set_bit(reason, &mod_fail->dup_fail_mask); in try_add_failed_module()
258 atomic_long_inc(&mod_fail->count); in try_add_failed_module()
259 list_add_rcu(&mod_fail->list, &dup_failed_modules); in try_add_failed_module()
276 struct mod_fail_load *mod_fail; in read_file_mod_stats() local
385 list_for_each_entry_rcu(mod_fail, &dup_failed_modules, list) { in read_file_mod_stats()
388 len += scnprintf(buf + len, size - len, "%25s\t%15lu\t%25s\n", mod_fail->name, in read_file_mod_stats()
389 atomic_long_read(&mod_fail->count), mod_fail_to_str(mod_fail)); in read_file_mod_stats()