Lines Matching refs:mod_taint
21 struct mod_unload_taint *mod_taint; in try_add_tainted_module() local
28 list_for_each_entry_rcu(mod_taint, &unloaded_tainted_modules, list, in try_add_tainted_module()
30 if (!strcmp(mod_taint->name, mod->name) && in try_add_tainted_module()
31 mod_taint->taints & mod->taints) { in try_add_tainted_module()
32 mod_taint->count++; in try_add_tainted_module()
37 mod_taint = kmalloc(sizeof(*mod_taint), GFP_KERNEL); in try_add_tainted_module()
38 if (unlikely(!mod_taint)) in try_add_tainted_module()
40 strscpy(mod_taint->name, mod->name, MODULE_NAME_LEN); in try_add_tainted_module()
41 mod_taint->taints = mod->taints; in try_add_tainted_module()
42 list_add_rcu(&mod_taint->list, &unloaded_tainted_modules); in try_add_tainted_module()
43 mod_taint->count = 1; in try_add_tainted_module()
50 struct mod_unload_taint *mod_taint; in print_unloaded_tainted_modules() local
55 list_for_each_entry_rcu(mod_taint, &unloaded_tainted_modules, in print_unloaded_tainted_modules()
59 l = module_flags_taint(mod_taint->taints, buf); in print_unloaded_tainted_modules()
61 pr_cont(" %s(%s):%llu", mod_taint->name, buf, in print_unloaded_tainted_modules()
62 mod_taint->count); in print_unloaded_tainted_modules()
88 struct mod_unload_taint *mod_taint; in unloaded_tainted_modules_seq_show() local
92 mod_taint = list_entry(p, struct mod_unload_taint, list); in unloaded_tainted_modules_seq_show()
93 l = module_flags_taint(mod_taint->taints, buf); in unloaded_tainted_modules_seq_show()
96 seq_printf(m, "%s (%s) %llu", mod_taint->name, buf, mod_taint->count); in unloaded_tainted_modules_seq_show()