Lines Matching refs:module_name

49     std::string module_name = module_path.substr(start, end - start);  in MakeCanonical()  local
51 std::replace(module_name.begin(), module_name.end(), '-', '_'); in MakeCanonical()
52 return module_name; in MakeCanonical()
106 const std::string& module_name = *it++; in ParseAliasCallback() local
107 this->module_aliases_.emplace_back(alias, module_name); in ParseAliasCallback()
242 void Modprobe::AddOption(const std::string& module_name, const std::string& option_name, in AddOption() argument
244 auto canonical_name = MakeCanonical(module_name); in AddOption()
256 std::string module_name = ""; in ParseKernelCmdlineOptions() local
275 if (!module_name.empty() && !option_name.empty()) { in ParseKernelCmdlineOptions()
276 AddOption(module_name, option_name, value); in ParseKernelCmdlineOptions()
279 module_name = ""; in ParseKernelCmdlineOptions()
290 module_name = cmdline.substr(start, i - start); in ParseKernelCmdlineOptions()
310 if (!module_name.empty() && !option_name.empty()) { in ParseKernelCmdlineOptions()
311 AddOption(module_name, option_name, value); in ParseKernelCmdlineOptions()
352 bool Modprobe::InsmodWithDeps(const std::string& module_name, const std::string& parameters) { in InsmodWithDeps() argument
353 if (module_name.empty()) { in InsmodWithDeps()
354 LOG(ERROR) << "Need valid module name, given: " << module_name; in InsmodWithDeps()
358 auto dependencies = GetDependencies(module_name); in InsmodWithDeps()
360 LOG(ERROR) << "Module " << module_name << " not in dependency file"; in InsmodWithDeps()
366 LOG(VERBOSE) << "Loading hard dep for '" << module_name << "': " << *dep; in InsmodWithDeps()
374 if (module_name == module) { in InsmodWithDeps()
387 if (module_name == module) { in InsmodWithDeps()
396 bool Modprobe::LoadWithAliases(const std::string& module_name, bool strict, in LoadWithAliases() argument
398 auto canonical_name = MakeCanonical(module_name); in LoadWithAliases()
409 if (fnmatch(alias.c_str(), module_name.c_str(), 0) != 0) continue; in LoadWithAliases()
410 LOG(VERBOSE) << "Found alias for '" << module_name << "': '" << aliased_module; in LoadWithAliases()
422 LOG(ERROR) << "LoadWithAliases was unable to load " << module_name; in LoadWithAliases()
428 bool Modprobe::IsBlocklisted(const std::string& module_name) { in IsBlocklisted() argument
431 auto canonical_name = MakeCanonical(module_name); in IsBlocklisted()
452 bool Modprobe::Remove(const std::string& module_name) { in Remove() argument
453 auto dependencies = GetDependencies(MakeCanonical(module_name)); in Remove()
457 Rmmod(module_name); in Remove()