Lines Matching refs:dep
97 const struct kmod_softdep *dep = l->data; in kmod_softdep_get_name() local
98 return dep->name; in kmod_softdep_get_name()
102 const struct kmod_softdep *dep = l->data; in kmod_softdep_get_pre() local
103 *count = dep->n_pre; in kmod_softdep_get_pre()
104 return dep->pre; in kmod_softdep_get_pre()
108 const struct kmod_softdep *dep = l->data; in kmod_softdep_get_post() local
109 *count = dep->n_post; in kmod_softdep_get_post()
110 return dep->post; in kmod_softdep_get_post()
263 struct kmod_softdep *dep; in kmod_config_add_softdep() local
317 dep = malloc(sizeof(struct kmod_softdep) + modnamelen + in kmod_config_add_softdep()
321 if (dep == NULL) { in kmod_config_add_softdep()
325 dep->n_pre = n_pre; in kmod_config_add_softdep()
326 dep->n_post = n_post; in kmod_config_add_softdep()
327 dep->pre = (const char **)((char *)dep + sizeof(struct kmod_softdep)); in kmod_config_add_softdep()
328 dep->post = dep->pre + n_pre; in kmod_config_add_softdep()
329 dep->name = (char *)(dep->post + n_post); in kmod_config_add_softdep()
331 memcpy(dep->name, modname, modnamelen); in kmod_config_add_softdep()
334 itr = dep->name + modnamelen; in kmod_config_add_softdep()
366 dep->pre[n_pre] = itr; in kmod_config_add_softdep()
372 dep->post[n_post] = itr; in kmod_config_add_softdep()
384 list = kmod_list_append(config->softdeps, dep); in kmod_config_add_softdep()
386 free(dep); in kmod_config_add_softdep()
394 static char *softdep_to_char(struct kmod_softdep *dep) { in softdep_to_char() argument
406 if (dep->n_pre > 0) { in softdep_to_char()
407 start = dep->pre[0]; in softdep_to_char()
408 end = dep->pre[dep->n_pre - 1] in softdep_to_char()
409 + strlen(dep->pre[dep->n_pre - 1]); in softdep_to_char()
415 if (dep->n_post > 0) { in softdep_to_char()
416 start = dep->post[0]; in softdep_to_char()
417 end = dep->post[dep->n_post - 1] in softdep_to_char()
418 + strlen(dep->post[dep->n_post - 1]); in softdep_to_char()
435 memcpy(itr, dep->pre[0], sz_pre + 1); in softdep_to_char()
450 memcpy(itr, dep->post[0], sz_post + 1); in softdep_to_char()