Home
last modified time | relevance | path

Searched refs:modnamelen (Results 1 – 4 of 4) sorted by relevance

/external/kmod/testsuite/
Ddelete_module.c58 size_t modnamelen; in parse_retcodes() local
66 modnamelen = strcspn(p, ":"); in parse_retcodes()
67 if (modname[modnamelen] != ':') in parse_retcodes()
70 p = modname + modnamelen + 1; in parse_retcodes()
89 mod = malloc(sizeof(*mod) + modnamelen + 1); in parse_retcodes()
93 memcpy(mod->name, modname, modnamelen); in parse_retcodes()
94 mod->name[modnamelen] = '\0'; in parse_retcodes()
Dinit_module.c74 size_t modnamelen; in parse_retcodes() local
82 modnamelen = strcspn(s, ":"); in parse_retcodes()
83 if (modname[modnamelen] != ':') in parse_retcodes()
86 p = modname + modnamelen + 1; in parse_retcodes()
104 mod = malloc(sizeof(*mod) + modnamelen + 1); in parse_retcodes()
108 memcpy(mod->name, modname, modnamelen); in parse_retcodes()
109 mod->name[modnamelen] = '\0'; in parse_retcodes()
/external/kmod/libkmod/
Dlibkmod-config.c121 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()
[all …]
/external/kmod/tools/
Ddepmod.c523 size_t modnamelen = strlen(modname); in cfg_override_add() local
528 + modnamelen + 1); in cfg_override_add()
538 memcpy(o->path + i, modname, modnamelen); in cfg_override_add()
539 i += modnamelen; in cfg_override_add()
1098 …*depmod, const struct mod *mod, size_t baselen, size_t namelen, size_t modnamelen, const char *new… in depmod_module_is_higher_priority() argument
1108 size_t newlen = baselen + modnamelen; in depmod_module_is_higher_priority()
1181 size_t modnamelen; in depmod_modules_search_file() local
1187 if (path_to_modname(path, modname, &modnamelen) == NULL) { in depmod_modules_search_file()
1200 namelen, modnamelen, path)) { in depmod_modules_search_file()