Lines Matching refs:modnamelen
121 size_t modnamelen = strlen(modname) + 1; in kmod_config_add_command() local
127 cmd = malloc(sizeof(*cmd) + modnamelen + commandlen); in kmod_config_add_command()
131 cmd->command = sizeof(*cmd) + modnamelen + (char *)cmd; in kmod_config_add_command()
132 memcpy(cmd->modname, modname, modnamelen); in kmod_config_add_command()
159 size_t modnamelen = strlen(modname) + 1; in kmod_config_add_options() local
164 opt = malloc(sizeof(*opt) + modnamelen + optionslen); in kmod_config_add_options()
168 opt->options = sizeof(*opt) + modnamelen + (char *)opt; in kmod_config_add_options()
170 memcpy(opt->modname, modname, modnamelen); in kmod_config_add_options()
198 size_t namelen = strlen(name) + 1, modnamelen = strlen(modname) + 1; in kmod_config_add_alias() local
202 alias = malloc(sizeof(*alias) + namelen + modnamelen); in kmod_config_add_alias()
206 alias->name = sizeof(*alias) + modnamelen + (char *)alias; in kmod_config_add_alias()
208 memcpy(alias->modname, modname, modnamelen); in kmod_config_add_alias()
267 size_t modnamelen = strlen(modname) + 1; in kmod_config_add_softdep() local
317 dep = malloc(sizeof(struct kmod_softdep) + modnamelen + 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()