Lines Matching refs:vnode
112 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8… in PathCacheAlloc() argument
118 if (name == NULL || len > NAME_MAX || parent == NULL || vnode == NULL) { in PathCacheAlloc()
137 pc->childVnode = vnode; in PathCacheAlloc()
140 LOS_ListAdd((&(vnode->parentPathCaches)), (&(pc->parentEntry))); in PathCacheAlloc()
162 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode) in PathCacheLookup() argument
171 *vnode = pc->childVnode; in PathCacheLookup()
179 static void FreeChildPathCache(struct Vnode *vnode) in FreeChildPathCache() argument
184 …LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &(vnode->childPathCaches), struct PathCache, child… in FreeChildPathCache()
189 static void FreeParentPathCache(struct Vnode *vnode) in FreeParentPathCache() argument
194 …LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &(vnode->parentPathCaches), struct PathCache, pare… in FreeParentPathCache()
199 void VnodePathCacheFree(struct Vnode *vnode) in VnodePathCacheFree() argument
201 if (vnode == NULL) { in VnodePathCacheFree()
204 FreeParentPathCache(vnode); in VnodePathCacheFree()
205 FreeChildPathCache(vnode); in VnodePathCacheFree()