Home
last modified time | relevance | path

Searched refs:devPath (Results 1 – 25 of 29) sorted by relevance

12

/base/update/sys_installer/services/module_update/src/
Dmodule_dm.cpp58 char *devPath = nullptr; in CreateDmDevice() local
77 ret = FsDmCreateDevice(&devPath, devName.c_str(), &target); in CreateDmDevice()
82 ret = FsDmInitDmDev(devPath, false); in CreateDmDevice()
87 deviceName = std::string(devPath); in CreateDmDevice()
89 free(devPath); in CreateDmDevice()
/base/startup/init/ueventd/
Dueventd_device_handler.c428 char *devPath = NULL; in GetDeviceBasePath() local
430 return devPath; in GetDeviceBasePath()
434 devPath = "/dev/block"; in GetDeviceBasePath()
436 devPath = "/dev/input"; in GetDeviceBasePath()
438 devPath = "/dev/dri"; in GetDeviceBasePath()
440 devPath = "/dev/graphics"; in GetDeviceBasePath()
442 devPath = "/dev/snd"; in GetDeviceBasePath()
444 devPath = "/dev/functionfs"; in GetDeviceBasePath()
446 devPath = "/dev/dma_heap"; in GetDeviceBasePath()
448 devPath = "/dev"; in GetDeviceBasePath()
[all …]
/base/update/updater/services/fs_manager/
Dpartitions.cpp31 if (!stat (dev.devPath.c_str(), &devStat)) { in DeviceStat()
34 if (stat (dev.devPath.c_str(), &devStat) != EOK) { in DeviceStat()
91 LastComponent(dev.devPath).c_str(), file.c_str()) == -1) { in ReadDeviceSysfsFile()
128 specific->fd = open(dev.devPath.c_str(), RW_MODE); in SetBlockDeviceMode()
130 LOG(WARNING) << "Open " << dev.devPath << " with read-write failed, try read-only mode"; in SetBlockDeviceMode()
131 specific->fd = open(dev.devPath.c_str(), RD_MODE); in SetBlockDeviceMode()
135 LOG(ERROR) << "Open " << dev.devPath << " with read-only mode failed: " << errno; in SetBlockDeviceMode()
159 std::string devPath; in ReadPartitionFromSys() local
161 devPath = "/sys/block/" + devname + "/" + partn + "/" + type; in ReadPartitionFromSys()
163 devPath = "/sys/block/" + devname + "/" + type; in ReadPartitionFromSys()
[all …]
Dmount.cpp215 void ErasePartition(const std::string &devPath) in ErasePartition() argument
218 if (!Utils::PathToRealPath(devPath, realPath)) { in ErasePartition()
219 LOG(ERROR) << "realpath failed:" << devPath; in ErasePartition()
/base/update/updater/test/unittest/applypatch_test/
Dapplypatch_unittest.cpp62 auto devPath = GetBlockDeviceByMountPoint(partitionName); in TearDown() local
63 unlink(devPath.c_str()); in TearDown()
88 auto devPath = GetBlockDeviceByMountPoint(partitionName); variable
91 close(open(devPath.c_str(), O_CREAT | O_WRONLY | O_EXCL, 0664));
95 int fd = open(devPath.c_str(), O_RDONLY);
/base/msdp/device_status/intention/services/device_manager/src/
Ddevice_manager.cpp143 std::shared_ptr<IDevice> DeviceManager::FindDevice(const std::string &devPath) in FindDevice() argument
146 [devPath](const auto &item) { in FindDevice()
147 return ((item.second != nullptr) && (item.second->GetDevPath() == devPath)); in FindDevice()
170 const std::string devPath { DEV_INPUT_PATH + devNode }; in AddDevice() local
173 if (stat(devPath.c_str(), &statbuf) != 0) { in AddDevice()
174 FI_HILOGD("Invalid device path:%{public}s", devPath.c_str()); in AddDevice()
178 FI_HILOGD("Not character device:%{public}s", devPath.c_str()); in AddDevice()
188 std::shared_ptr<IDevice> dev = FindDevice(devPath); in AddDevice()
190 FI_HILOGD("Already exists:%{public}s", devPath.c_str()); in AddDevice()
202 dev->SetDevPath(devPath); in AddDevice()
[all …]
Denumerator.cpp55 const std::string devPath { DEV_INPUT_PATH + devNode }; in ScanAndAddDevices() local
58 if (stat(devPath.c_str(), &statbuf) != 0) { in ScanAndAddDevices()
/base/update/updater/test/unittest/updater_binary/
Dupdate_processor_unittest.cpp49 string devPath = GetBlockDeviceByMountPoint(UT_MISC_PARTITION_NAME); in SetUp() local
51 auto ret = Store::WriteDataToStore("/", devPath, buffer, UT_MISC_BUFFER_SIZE); in SetUp()
60 string devPath = GetBlockDeviceByMountPoint(UT_MISC_PARTITION_NAME); in TearDown() local
61 auto ret = Store::FreeStore("/", devPath); in TearDown()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp138 std::string devPath; member
176 infos.devPath = GetBlockDeviceByMountPoint(infos.partitionName); in GetUpdateBlockInfo()
177 LOG(INFO) << "ExecuteUpdateBlock::updating dev path : " << infos.devPath; in GetUpdateBlockInfo()
178 if (infos.devPath.empty()) { in GetUpdateBlockInfo()
282 int fd = open(infos.devPath.c_str(), O_RDWR | O_LARGEFILE); in DoExecuteUpdateBlock()
391 bool UScriptInstructionBlockCheck::ExecReadBlockInfo(const std::string &devPath, Uscript::UScriptCo… in ExecReadBlockInfo() argument
395 int fd = open(devPath.c_str(), O_RDWR | O_LARGEFILE); in ExecReadBlockInfo()
447 auto devPath = GetBlockDeviceByMountPoint(partitionName); in Execute() local
448 LOG(INFO) << "UScriptInstructionBlockCheck::dev path : " << devPath; in Execute()
451 if (devPath.empty() || (!ExecReadBlockInfo(devPath, context, mountTime, mountCount))) { in Execute()
[all …]
Dupdate_image_patch.cpp72 para.devPath = GetBlockDeviceByMountPoint(para.partName); in GetParam()
73 if (para.devPath.empty()) { in GetParam()
100 std::unique_ptr<DataWriter> writer = DataWriter::CreateDataWriter(WRITE_RAW, para.devPath); in ApplyPatch()
167 if (!Utils::CopyFile(para.devPath, srcFile)) { in GetSourceFile()
168 LOG(ERROR) << "copy " << para.devPath << " to " << srcFile << " failed"; in GetSourceFile()
253 para.devPath = GetBlockDeviceByMountPoint(para.partName); in GetParam()
254 if (para.devPath.empty()) { in GetParam()
258 LOG(INFO) << "dev path: " << para.devPath; in GetParam()
265 if (PatchMapFile(para.devPath, mapBuffer) != UpdatePatch::PATCH_SUCCESS) { in CheckHash()
Dupdate_image_block.h36 bool ExecReadBlockInfo(const std::string &devPath, Uscript::UScriptContext &context,
46 …int ExecReadShaInfo(Uscript::UScriptEnv &env, const std::string &devPath, const std::string &block…
Dupdate_image_patch.h29 std::string devPath {};
54 std::string devPath {};
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c373 char devPath[FS_HVB_DEVPATH_MAX_LEN] = {0}; in FsHvbConstructVerityTarget() local
383 if (snprintf_s(&devPath[0], sizeof(devPath), sizeof(devPath) - 1, "%s%s", in FsHvbConstructVerityTarget()
389 BEGET_LOGE("puck devPath=%s", &devPath[0]); in FsHvbConstructVerityTarget()
396 RETURN_ERR_IF_APPEND_STRING_ERR(&p, end, &devPath[0], strlen(devPath)); in FsHvbConstructVerityTarget()
398 RETURN_ERR_IF_APPEND_STRING_ERR(&p, end, &devPath[0], strlen(devPath)); in FsHvbConstructVerityTarget()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include/
Dfs_dm.h37 int FsDmInitDmDev(char *devPath, bool useSocket);
/base/powermgr/battery_manager/charger/src/dev/
Dfbdev_driver.cpp108 void FbdevDriver::SetDevPath(const std::string& devPath) in SetDevPath() argument
110 devPath_ = devPath; in SetDevPath()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
Dfs_dm.c268 int FsDmInitDmDev(char *devPath, bool useSocket) in FsDmInitDmDev() argument
274 if (devPath == NULL) { in FsDmInitDmDev()
279 devName = basename(devPath); in FsDmInitDmDev()
/base/msdp/device_status/intention/services/device_manager/include/
Ddevice.h78 void SetDevPath(const std::string &devPath) override;
154 inline void Device::SetDevPath(const std::string &devPath) in SetDevPath() argument
156 devPath_ = devPath; in SetDevPath()
Ddevice_manager.h81 std::shared_ptr<IDevice> FindDevice(const std::string &devPath);
/base/powermgr/battery_manager/charger/include/dev/
Dfbdev_driver.h46 static void SetDevPath(const std::string& devPath);
/base/update/updater/services/ui/driver/
Dfbdev_driver.h45 static void SetDevPath(const std::string &devPath);
Dfbdev_driver.cpp145 void FbdevDriver::SetDevPath(const std::string &devPath) in SetDevPath() argument
147 devPath_ = devPath; in SetDevPath()
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c113 int DoFormat(const char *devPath, const char *fsType) in DoFormat() argument
115 if (devPath == NULL || fsType == NULL) { in DoFormat()
131 "/bin/mke2fs", "-F", "-t", (char *)fsType, "-b", blockSizeBuffer, (char *)devPath, NULL in DoFormat()
140 "-O", "sb_checksum", (char *)devPath, NULL in DoFormat()
145 "-O", "sb_checksum", (char *)devPath, NULL in DoFormat()
/base/msdp/device_status/intention/prototype/include/
Di_device.h43 virtual void SetDevPath(const std::string &devPath) = 0;
/base/update/updater/services/include/fs_manager/
Dpartitions.h71 std::string devPath; member
/base/startup/init/interfaces/innerkits/include/fs_manager/
Dfs_manager.h94 int DoFormat(const char *devPath, const char *fsType);

12