Searched refs:subsystem (Results 1 - 7 of 7) sorted by relevance
/base/startup/init/ueventd/ |
H A D | ueventd_device_handler.c | 302 if (uevent == NULL || uevent->subsystem == NULL || STRINGEQUAL(uevent->subsystem, "block") == 0) { in GetBlockDeviceSymbolLinks() 312 // check subsystem file under directory, see if it links to bus/platform. in GetBlockDeviceSymbolLinks() 326 // Reverse walk through sysPath, and check subsystem file under each directory. in GetBlockDeviceSymbolLinks() 329 char subsystem[SYSPATH_SIZE]; in GetBlockDeviceSymbolLinks() local 330 if (snprintf_s(subsystem, SYSPATH_SIZE, SYSPATH_SIZE - 1, "%s/subsystem", parent) == -1) { in GetBlockDeviceSymbolLinks() 331 INIT_LOGE("Failed to build subsystem path for device \" %s \"", uevent->syspath); in GetBlockDeviceSymbolLinks() 335 char *bus = GetRealPath(subsystem); in GetBlockDeviceSymbolLinks() 426 static const char *GetDeviceBasePath(const char *subsystem) in GetDeviceBasePath() argument [all...] |
H A D | ueventd.c | 55 static SUBSYSTEMTYPE GetSubsystemType(const char *subsystem) in GetSubsystemType() argument 57 if (subsystem == NULL || *subsystem == '\0') { in GetSubsystemType() 61 if (strcmp(subsystem, "block") == 0) { in GetSubsystemType() 63 } else if (strcmp(subsystem, "platform") == 0) { in GetSubsystemType() 65 } else if (strcmp(subsystem, "firmware") == 0) { in GetSubsystemType() 110 SUBSYSTEMTYPE type = GetSubsystemType(uevent->subsystem); in HandleUevent() 206 SUBSYSTEMTYPE type = GetSubsystemType(uevent->subsystem); in HandleUeventRequired() 221 uevent->subsystem = event + strlen("SUBSYSTEM="); in AddUevent() 248 "subsystem in AddUevent() [all...] |
/base/startup/init/test/unittest/ueventd/ |
H A D | ueventd_event_unittest.cpp | 187 if (uevent.subsystem != nullptr) { in GenerateUeventBuffer() 188 ueventdBuffer.append(std::string("SUBSYSTEM=") + uevent.subsystem + '\000'); in GenerateUeventBuffer() 235 .subsystem = "block", in HWTEST_F() 259 EXPECT_STREQ(outEvent.subsystem, "block"); in HWTEST_F() 275 .subsystem = "block", in HWTEST_F() 295 .subsystem = "char", in HWTEST_F() 300 .subsystem = "block", in HWTEST_F() 307 .subsystem = "block", in HWTEST_F() 318 .subsystem = "block", in HWTEST_F() 348 .subsystem in HWTEST_F() [all...] |
/base/startup/init/test/fuzztest/handleblockdeviceevent_fuzzer/ |
H A D | handleblockdeviceevent_fuzzer.cpp | 25 .subsystem = str.c_str(), in FuzzHandleBlockDeviceEvent()
|
/base/startup/init/test/fuzztest/handleotherdeviceevent_fuzzer/ |
H A D | handleotherdeviceevent_fuzzer.cpp | 25 .subsystem = str.c_str(), in FuzzHandleOtherDeviceEvent()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | inner_errors.h | 39 // be used to init the subsystem errorno. 42 * subsystem. 44 * @param subsystem Value of 'Subsystem' segment. 49 constexpr ErrCode ErrCodeOffset(unsigned int subsystem, unsigned int module = 0) in ErrCodeOffset() argument 53 return (subsystem << subsystemBitNum) | (module << moduleBitNum); in ErrCodeOffset()
|
/base/startup/init/ueventd/include/ |
H A D | ueventd.h | 44 const char *subsystem; member
|
Completed in 5 milliseconds