Lines Matching defs:mod
56 static char *path2mod(char *file, char *mod)
62 if (!mod) mod = xmalloc(MODNAME_LEN);
67 mod[i] = (from[i] == '-') ? '_' : from[i];
68 mod[i] = '\0';
69 return mod;
134 * if add - create module entry, add it to data base and return the same mod.
136 static struct module_s *get_mod(char *mod, uint8_t add)
143 path2mod(mod, name);
310 struct module_s *mod;
318 mod = get_mod(line, 0);
319 if (!mod) continue;
320 if ((mod->flags & MOD_ALOADED) && !(FLAG(r)|FLAG(D))) continue;
322 mod->flags |= MOD_FNDDEPMOD;
323 if ((mod->flags & MOD_NDDEPS) && !mod->dep) {
325 llist_add(&mod->dep, xstrdup(line));
332 llist_add_tail(&mod->dep, xstrdup(tok));
363 struct module_s *mod = get_mod(name, 1);
365 if (!(FLAG(r)|FLAG(D)) && (mod->flags & MOD_ALOADED)) {
370 mod->cmdname = name;
371 mod->flags |= MOD_NDDEPS;
372 llist_add_tail(&TT.probes, mod);
374 if (!strncmp(mod->name, "symbol:", 7)) TT.symreq = 1;