Lines Matching refs:module_name

51     std::string module_name = module_path.substr(start, end - start);  in MakeCanonical()  local
53 std::replace(module_name.begin(), module_name.end(), '-', '_'); in MakeCanonical()
54 return module_name; in MakeCanonical()
108 const std::string& module_name = *it++; in ParseAliasCallback() local
109 this->module_aliases_.emplace_back(alias, module_name); in ParseAliasCallback()
244 void Modprobe::AddOption(const std::string& module_name, const std::string& option_name, in AddOption() argument
246 auto canonical_name = MakeCanonical(module_name); in AddOption()
258 std::string module_name = ""; in ParseKernelCmdlineOptions() local
277 if (!module_name.empty() && !option_name.empty()) { in ParseKernelCmdlineOptions()
278 AddOption(module_name, option_name, value); in ParseKernelCmdlineOptions()
281 module_name = ""; in ParseKernelCmdlineOptions()
292 module_name = cmdline.substr(start, i - start); in ParseKernelCmdlineOptions()
312 if (!module_name.empty() && !option_name.empty()) { in ParseKernelCmdlineOptions()
313 AddOption(module_name, option_name, value); in ParseKernelCmdlineOptions()
354 bool Modprobe::InsmodWithDeps(const std::string& module_name, const std::string& parameters) { in InsmodWithDeps() argument
355 if (module_name.empty()) { in InsmodWithDeps()
356 LOG(ERROR) << "Need valid module name, given: " << module_name; in InsmodWithDeps()
360 auto dependencies = GetDependencies(module_name); in InsmodWithDeps()
362 LOG(ERROR) << "Module " << module_name << " not in dependency file"; in InsmodWithDeps()
368 LOG(VERBOSE) << "Loading hard dep for '" << module_name << "': " << *dep; in InsmodWithDeps()
376 if (module_name == module) { in InsmodWithDeps()
389 if (module_name == module) { in InsmodWithDeps()
398 bool Modprobe::LoadWithAliases(const std::string& module_name, bool strict, in LoadWithAliases() argument
400 auto canonical_name = MakeCanonical(module_name); in LoadWithAliases()
411 if (fnmatch(alias.c_str(), module_name.c_str(), 0) != 0) continue; in LoadWithAliases()
412 LOG(VERBOSE) << "Found alias for '" << module_name << "': '" << aliased_module; in LoadWithAliases()
424 LOG(ERROR) << "LoadWithAliases was unable to load " << module_name; in LoadWithAliases()
430 bool Modprobe::IsBlocklisted(const std::string& module_name) { in IsBlocklisted() argument
433 auto canonical_name = MakeCanonical(module_name); in IsBlocklisted()
550 bool Modprobe::Remove(const std::string& module_name) { in Remove() argument
551 auto dependencies = GetDependencies(MakeCanonical(module_name)); in Remove()
555 Rmmod(module_name); in Remove()