Lines Matching defs:mod
96 const struct lmodule *mod;
109 const struct lmodule *mod;
141 ng_register_cookie(const struct lmodule *mod, u_int32_t cookie, ng_ID_t id,
153 d->mod = mod;
176 ng_register_hook(const struct lmodule *mod, const char *hook,
187 d->mod = mod;
211 ng_unregister_module(const struct lmodule *mod)
219 if (m->mod == mod) {
229 if (d->mod == mod) {
521 ng_init(struct lmodule *mod, int argc, char *argv[])
526 module = mod;
1177 char *mod;
1180 if ((mod = malloc(namelen + 4)) == NULL)
1182 strcpy(mod, "ng_");
1183 strncpy(mod + 3, name, namelen);
1184 mod[namelen + 3] = '\0';
1186 ret = kldload(mod);
1187 free(mod);
1197 char *mod;
1200 if ((mod = malloc(namelen + 4)) == NULL)
1202 strcpy(mod, "ng_");
1203 strncpy(mod + 3, name, namelen);
1204 mod[namelen + 3] = '\0';
1206 if ((id = kldfind(mod)) == -1) {
1207 free(mod);
1210 free(mod);