Lines Matching defs:parent
247 static int BuildDeviceSymbolLinks(char **links, int linkNum, const char *parent,
261 "/dev/block/platform/%s/by-name/%s", parent, partitionName) == -1) {
264 if (STRINGEQUAL(parent, bootDevice)) {
276 INIT_LOGI("%s and %s is not match", parent, bootDevice);
280 "/dev/block/platform/%s/%s", parent, deviceName) == -1) {
327 char *parent = dirname(sysPath);
328 while (parent != NULL && !STRINGEQUAL(parent, "/") && !STRINGEQUAL(parent, ".")) {
330 if (snprintf_s(subsystem, SYSPATH_SIZE, SYSPATH_SIZE - 1, "%s/subsystem", parent) == -1) {
337 parent = dirname(parent);
341 INIT_LOGV("Find a platform device: %s", parent);
342 parent = FindPlatformDeviceName(parent);
343 if (parent != NULL) {
346 linkNum = BuildDeviceSymbolLinks(links, linkNum, parent, uevent->partitionName, uevent->deviceName);
351 parent = dirname(parent);