Home | History | Annotate | Download | only in init

Lines Matching refs:devpath

344 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block,
347 MakeDevice(devpath, block, major, minor, links);
353 if (symlink(devpath.c_str(), link.c_str())) {
355 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link;
357 Readlink(link, &link_path) && link_path != devpath) {
358 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link
368 if (Readlink(link, &link_path) && link_path == devpath) {
372 unlink(devpath.c_str());
384 std::string devpath;
390 devpath = "/dev/block/" + Basename(uevent.path);
398 devpath = subsystem->ParseDevPath(uevent);
401 devpath = "/dev/" + uevent.device_name;
408 devpath = StringPrintf("/dev/bus/usb/%03d/%03d", bus_id, device_id);
414 devpath = "/dev/" + Basename(uevent.path);
417 mkdir_recursive(Dirname(devpath), 0755);
419 HandleDevice(uevent.action, devpath, block, uevent.major, uevent.minor, links);