Lines Matching refs:ldPath
222 char *ldPath = (char *)LOSCFG_FS_MALLOC_HOOK(strlen(volPath) + LDPATH_PAD);
223 if (ldPath == NULL) {
227 (void)memset_s(ldPath, strlen(volPath) + LDPATH_PAD, 0, strlen(volPath) + LDPATH_PAD);
230 *ldPath = '/';
231 ret = strcpy_s(ldPath + 1, strlen(volPath)+1, volPath);
233 LOSCFG_FS_FREE_HOOK(ldPath);
237 return ldPath;
240 void PutLdPath(const char *ldPath)
242 if (ldPath != NULL) {
243 LOSCFG_FS_FREE_HOOK((void *)ldPath);
257 char *ldPath = GetLdPath(mp->mDev);
258 if (ldPath == NULL) {
266 PutLdPath(ldPath);
271 res = f_mount(fs, ldPath, 1);
274 PutLdPath(ldPath);
280 PutLdPath(ldPath);
288 char *ldPath = NULL;
304 ldPath = GetLdPath(mp->mDev);
305 if (ldPath == NULL) {
310 res = f_mount((FATFS *)NULL, ldPath, 0);
313 PutLdPath(ldPath);
324 PutLdPath(ldPath);
332 char *ldPath = NULL;
347 ldPath = GetLdPath(mp->mDev);
348 if (ldPath == NULL) {
353 res = f_mount((FATFS *)NULL, ldPath, 0);
355 PutLdPath(ldPath);
367 PutLdPath(ldPath);