Home
last modified time | relevance | path

Searched refs:linkDir (Results 1 – 1 of 1) sorted by relevance

/base/startup/init/ueventd/
Dueventd_device_handler.c40 static bool IsBootDeviceLinkDir(const char *linkDir, const char *bootDevice) in IsBootDeviceLinkDir() argument
43 INIT_CHECK_RETURN_VALUE(strncmp(linkDir, "/dev/block/platform/", pathLen) == 0, false); in IsBootDeviceLinkDir()
44 const char *vernier = linkDir + pathLen; in IsBootDeviceLinkDir()
65 const char *linkDir = dirname(linkBuf); in CreateSymbolLinks() local
66 if (MakeDirRecursive(linkDir, DIRMODE) < 0) { in CreateSymbolLinks()
67 INIT_LOGE("[uevent] Failed to create dir \" %s \", err = %d", linkDir, errno); in CreateSymbolLinks()
70 if (IsBootDeviceLinkDir(linkDir, bootDevice) && access("/dev/block/by-name", F_OK) != 0) { in CreateSymbolLinks()
71 INIT_CHECK_ONLY_ELOG(symlink(linkDir, "/dev/block/by-name") == 0, in CreateSymbolLinks()