Lines Matching refs:sysPath
314 char sysPath[SYSPATH_SIZE] = {};
315 if (snprintf_s(sysPath, SYSPATH_SIZE, SYSPATH_SIZE - 1, "/sys%s", uevent->syspath) == -1) {
326 // Reverse walk through sysPath, and check subsystem file under each directory.
327 char *parent = dirname(sysPath);
397 static const char *GetDeviceName(char *sysPath, const char *deviceName)
400 if (INVALIDSTRING(sysPath)) {
414 devName = basename(sysPath);
421 devName = basename(sysPath);
474 char sysPath[SYSPATH_SIZE] = {};
479 if (strncpy_s(sysPath, SYSPATH_SIZE - 1, uevent->syspath, strlen(uevent->syspath) != EOK)) {
483 const char *devName = GetDeviceName(sysPath, uevent->deviceName);
508 char sysPath[SYSPATH_SIZE] = {};
509 if (strncpy_s(sysPath, SYSPATH_SIZE - 1, uevent->syspath, strlen(uevent->syspath)) != EOK) {
513 const char *devName = GetDeviceName(sysPath, uevent->deviceName);