Searched refs:modnamelen (Results 1 – 4 of 4) sorted by relevance
/external/kmod/testsuite/ |
D | delete_module.c | 58 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()
|
D | init_module.c | 74 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/ |
D | libkmod-config.c | 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() [all …]
|
/external/kmod/tools/ |
D | depmod.c | 496 size_t modnamelen = strlen(modname); in cfg_override_add() local 501 + modnamelen + 1); in cfg_override_add() 511 memcpy(o->path + i, modname, modnamelen); in cfg_override_add() 512 i += modnamelen; in cfg_override_add() 999 …*depmod, const struct mod *mod, size_t baselen, size_t namelen, size_t modnamelen, const char *new… in depmod_module_is_higher_priority() argument 1008 size_t newlen = baselen + modnamelen; in depmod_module_is_higher_priority() 1061 size_t modnamelen; in depmod_modules_search_file() local 1067 if (path_to_modname(path, modname, &modnamelen) == NULL) { in depmod_modules_search_file() 1080 namelen, modnamelen, path)) { in depmod_modules_search_file()
|