Lines Matching refs:sysPath
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()
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_SIZE - 1, uevent->syspath, strlen(uevent->syspath) != EOK)) { in HandleBlockDeviceEvent()
483 const char *devName = GetDeviceName(sysPath, uevent->deviceName); in HandleBlockDeviceEvent()
508 char sysPath[SYSPATH_SIZE] = {}; in HandleOtherDeviceEvent() local
509 if (strncpy_s(sysPath, SYSPATH_SIZE - 1, uevent->syspath, strlen(uevent->syspath)) != EOK) { in HandleOtherDeviceEvent()
513 const char *devName = GetDeviceName(sysPath, uevent->deviceName); in HandleOtherDeviceEvent()