Lines Matching refs:mod
20 static struct pi_entry *pi_get_entry(const struct module *mod, loff_t pos) in pi_get_entry() argument
26 if (mod) { in pi_get_entry()
27 entries = mod->printk_index_start; in pi_get_entry()
28 nr_entries = mod->printk_index_size; in pi_get_entry()
45 const struct module *mod = s->file->f_inode->i_private; in pi_next() local
46 struct pi_entry *entry = pi_get_entry(mod, *pos); in pi_next()
128 static const char *pi_get_module_name(struct module *mod) in pi_get_module_name() argument
130 return mod ? mod->name : "vmlinux"; in pi_get_module_name()
133 static const char *pi_get_module_name(struct module *mod) in pi_get_module_name() argument
139 static void pi_create_file(struct module *mod) in pi_create_file() argument
141 debugfs_create_file(pi_get_module_name(mod), 0444, dfs_index, in pi_create_file()
142 mod, &dfs_index_fops); in pi_create_file()
146 static void pi_remove_file(struct module *mod) in pi_remove_file() argument
148 debugfs_remove(debugfs_lookup(pi_get_module_name(mod), dfs_index)); in pi_remove_file()
154 struct module *mod = data; in pi_module_notify() local
158 pi_create_file(mod); in pi_module_notify()
161 pi_remove_file(mod); in pi_module_notify()