Home
last modified time | relevance | path

Searched refs:subsystem (Results 1 - 7 of 7) sorted by relevance

/base/startup/init/ueventd/
H A Dueventd_device_handler.c302 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 Dueventd.c55 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 Dueventd_event_unittest.cpp187 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 Dhandleblockdeviceevent_fuzzer.cpp25 .subsystem = str.c_str(), in FuzzHandleBlockDeviceEvent()
/base/startup/init/test/fuzztest/handleotherdeviceevent_fuzzer/
H A Dhandleotherdeviceevent_fuzzer.cpp25 .subsystem = str.c_str(), in FuzzHandleOtherDeviceEvent()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dinner_errors.h39 // 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 Dueventd.h44 const char *subsystem; member

Completed in 5 milliseconds