Lines Matching refs:mod
65 static char *path2mod(char *file, char *mod)
71 if (!mod) mod = xmalloc(MODNAME_LEN);
78 mod[i] = (from[i] == '-') ? '_' : from[i];
79 mod[i] = '\0';
80 return mod;
145 * if add - create module entry, add it to data base and return the same mod.
147 static struct module_s *get_mod(char *mod, uint8_t add)
154 path2mod(mod, name);
319 struct module_s *mod;
327 mod = get_mod(line, 0);
328 if (!mod) continue;
329 if ((mod->flags & MOD_ALOADED) &&
332 mod->flags |= MOD_FNDDEPMOD;
333 if ((mod->flags & MOD_NDDEPS) && (!mod->dep)) {
335 llist_add(&mod->dep, xstrdup(line));
342 llist_add_tail(&mod->dep, xstrdup(tok));
391 struct module_s *mod = get_mod(name, 1);
393 if (!(toys.optflags & (FLAG_r | FLAG_D)) && (mod->flags & MOD_ALOADED)) {
398 mod->cmdname = name;
399 mod->flags |= MOD_NDDEPS;
400 llist_add_tail(&TT.probes, mod);
402 if (!strncmp(mod->name, "symbol:", 7)) TT.symreq = 1;