Home
last modified time | relevance | path

Searched refs:devpath (Results 1 – 7 of 7) sorted by relevance

/system/core/init/
Ddevices.cpp447 static void RemoveDeviceMapperLinks(const std::string& devpath) { in RemoveDeviceMapperLinks() argument
467 if (Readlink(path, &link_path) && link_path == devpath) { in RemoveDeviceMapperLinks()
474 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block, in HandleDevice() argument
477 MakeDevice(devpath, block, major, minor, links); in HandleDevice()
485 if (action == "add" || (action == "change" && StartsWith(devpath, "/dev/block/dm-"))) { in HandleDevice()
489 target = devpath; in HandleDevice()
491 target = "/sys/class/block/" + Basename(devpath); in HandleDevice()
503 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link; in HandleDevice()
505 Readlink(link, &link_path) && link_path != devpath) { in HandleDevice()
506 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link in HandleDevice()
[all …]
Dfirmware_handler.cpp114 ExternalFirmwareHandler::ExternalFirmwareHandler(std::string devpath, uid_t uid, gid_t gid, in ExternalFirmwareHandler() argument
116 : devpath(std::move(devpath)), uid(uid), gid(gid), handler_path(std::move(handler_path)) { in ExternalFirmwareHandler()
117 auto wildcard_position = this->devpath.find('*'); in ExternalFirmwareHandler()
119 if (wildcard_position == this->devpath.length() - 1) { in ExternalFirmwareHandler()
120 this->devpath.pop_back(); in ExternalFirmwareHandler()
121 match = std::bind(PrefixMatch, this->devpath, std::placeholders::_1); in ExternalFirmwareHandler()
123 match = std::bind(FnMatch, this->devpath, std::placeholders::_1); in ExternalFirmwareHandler()
126 match = std::bind(EqualMatch, this->devpath, std::placeholders::_1); in ExternalFirmwareHandler()
130 ExternalFirmwareHandler::ExternalFirmwareHandler(std::string devpath, uid_t uid, in ExternalFirmwareHandler() argument
132 : ExternalFirmwareHandler(devpath, uid, 0, handler_path) {} in ExternalFirmwareHandler()
Dfirmware_handler.h34 ExternalFirmwareHandler(std::string devpath, uid_t uid, std::string handler_path);
35 ExternalFirmwareHandler(std::string devpath, uid_t uid, gid_t gid, std::string handler_path);
37 std::string devpath; member
Dueventd_parser_test.cpp50 EXPECT_EQ(expected.devpath, test.devpath) << expected.devpath; in TestExternalFirmwareHandler()
Ddevices.h145 void HandleDevice(const std::string& action, const std::string& devpath, bool block, int major,
DREADME.ueventd.md127 external_firmware_handler <devpath> <user [group]> <path to external program>
137 The `devpath` argument may include asterisks (`*`) to match multiple paths. For example, the string
Dueventd_parser.cpp109 [&args](const auto& other) { return other.devpath == args[1]; }) != in ParseExternalFirmwareHandlerLine()