Searched refs:sysPath (Results 1 - 6 of 6) sorted by relevance
/base/startup/init/test/fuzztest/changesysattributepermissions_fuzzer/ |
H A D | changesysattributepermissions_fuzzer.cpp | 23 const char *sysPath = reinterpret_cast<const char*>(data); in FuzzChangeSysAttributePermissions() local 24 ChangeSysAttributePermissions(sysPath); in FuzzChangeSysAttributePermissions()
|
/base/startup/init/ueventd/ |
H A D | ueventd_device_handler.c | 314 char sysPath[SYSPATH_SIZE] = {}; in GetBlockDeviceSymbolLinks() local 315 if (snprintf_s(sysPath, SYSPATH_SIZE, SYSPATH_SIZE - 1, "/sys%s", uevent->syspath) == -1) { in GetBlockDeviceSymbolLinks() 326 // Reverse walk through sysPath, and check subsystem file under each directory. in GetBlockDeviceSymbolLinks() 327 char *parent = dirname(sysPath); in GetBlockDeviceSymbolLinks() 397 static const char *GetDeviceName(char *sysPath, const char *deviceName) in GetDeviceName() argument 400 if (INVALIDSTRING(sysPath)) { in GetDeviceName() 414 devName = basename(sysPath); in GetDeviceName() 421 devName = basename(sysPath); in GetDeviceName() 474 char sysPath[SYSPATH_SIZE] = {}; in HandleBlockDeviceEvent() local 479 if (strncpy_s(sysPath, SYSPATH_SIZ in HandleBlockDeviceEvent() 508 char sysPath[SYSPATH_SIZE] = {}; HandleOtherDeviceEvent() local [all...] |
H A D | ueventd_read_cfg.c | 130 config->sysPath = strdup(items[0]); // sys path in ParseSysfsConfig() 131 INIT_ERROR_CHECK(config->sysPath != NULL, FreeStringVector(items, count); in ParseSysfsConfig() 135 free((void*)config->sysPath); free(config); return -1, "failed to dup attr"); in ParseSysfsConfig() 139 "Invalid mode in config file for sys path %s. use default mode", config->sysPath); in ParseSysfsConfig() 380 void ChangeSysAttributePermissions(const char *sysPath) in ChangeSysAttributePermissions() argument 382 if (INVALIDSTRING(sysPath)) { in ChangeSysAttributePermissions() 392 if (STRINGEQUAL(config->sysPath, sysPath)) { in ChangeSysAttributePermissions() 403 if (snprintf_s(sysAttr, SYSPATH_SIZE, SYSPATH_SIZE - 1, "/sys%s/%s", config->sysPath, config->attr) == -1) { in ChangeSysAttributePermissions() 404 INIT_LOGE("Failed to build sys attribute for sys path %s, attr: %s", config->sysPath, confi in ChangeSysAttributePermissions() [all...] |
/base/startup/init/ueventd/include/ |
H A D | ueventd_read_cfg.h | 39 const char *sysPath; member 57 void ChangeSysAttributePermissions(const char *sysPath);
|
/base/msdp/device_status/intention/services/device_manager/include/ |
H A D | device.h | 70 void SetSysPath(const std::string &sysPath) override; 166 inline void Device::SetSysPath(const std::string &sysPath) in SetSysPath() argument 168 sysPath_ = sysPath; in SetSysPath()
|
/base/msdp/device_status/intention/prototype/include/ |
H A D | i_device.h | 58 virtual void SetSysPath(const std::string &sysPath) = 0;
|
Completed in 4 milliseconds