Lines Matching defs:newfs
67 struct FsMap *newfs = (struct FsMap *)LOSCFG_FS_MALLOC_HOOK(sizeof(struct FsMap));
68 if (newfs == NULL) {
73 (void)memset_s(newfs, sizeof(struct FsMap), 0, sizeof(struct FsMap));
76 newfs->fsType = LOSCFG_FS_MALLOC_HOOK(len);
77 if (newfs->fsType == NULL) {
78 LOSCFG_FS_FREE_HOOK(newfs);
82 (void)strcpy_s((char *)newfs->fsType, len, fsType);
84 newfs->fsMops = fsMops;
85 newfs->fsFops = fsFops;
86 newfs->fsMgt = fsMgt;
87 newfs->fsRefs = 0;
90 newfs->next = g_fsMap;
91 g_fsMap = newfs;