Searched refs:fw_fd (Results 1 – 1 of 1) sorted by relevance
/system/core/init/ |
D | firmware_handler.cpp | 65 static void LoadFirmware(const std::string& firmware, const std::string& root, int fw_fd, in LoadFirmware() argument 71 int rc = sendfile(data_fd, fw_fd, nullptr, fw_size); in LoadFirmware() 253 unique_fd fw_fd(open(file.c_str(), O_RDONLY | O_CLOEXEC)); in ProcessFirmwareEvent() local 254 if (fw_fd == -1) { in ProcessFirmwareEvent() 260 if (fstat(fw_fd.get(), &sb) == -1) { in ProcessFirmwareEvent() 265 LoadFirmware(firmware, root, fw_fd.get(), sb.st_size, loading_fd.get(), data_fd.get()); in ProcessFirmwareEvent()
|