Lines Matching full:modules
51 LOG(INFO) << " -d, --dirname=DIR: Load modules from DIR, option may be used multiple times"; in print_usage()
52 LOG(INFO) << " -D, --show-depends: Print dependencies for modules only, do not load"; in print_usage()
54 LOG(INFO) << " -l, --list: List modules matching pattern"; in print_usage()
55 LOG(INFO) << " -r, --remove: Remove MODULE (multiple modules may be specified)"; in print_usage()
115 // Find directories in format of "/lib/modules/x.y.z-*".
154 std::vector<std::string> modules; in modprobe_main() local
184 // toybox modprobe supported -a to load multiple modules, this in modprobe_main()
189 // Since libmodprobe doesn't fail when the modules load file in modprobe_main()
247 modules.emplace_back(argv[opt]); in modprobe_main()
259 static constexpr auto LIB_MODULES_PREFIX = "/lib/modules/"; in modprobe_main()
274 // Allow modules to be directly inside /lib/modules in modprobe_main()
281 LOG(DEBUG) << "modules is: " << android::base::Join(modules, " "); in modprobe_main()
282 LOG(DEBUG) << "modules load file is: " << modules_load_file; in modprobe_main()
285 if (modules.empty()) { in modprobe_main()
288 modules.emplace_back("*"); in modprobe_main()
290 LOG(ERROR) << "No modules given."; in modprobe_main()
295 if (parameter_count && (modules.size() > 1 || !modules_load_file.empty())) { in modprobe_main()
301 Modprobe m(mod_dirs, modules_load_file.empty() ? "modules.load" : modules_load_file, blocklist); in modprobe_main()
304 PLOG(ERROR) << "Failed to load all the modules from " << modules_load_file; in modprobe_main()
307 /* Fall-through to load modules provided on the command line (if any)*/ in modprobe_main()
310 for (const auto& module : modules) { in modprobe_main()