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