Lines Matching defs:vnode
36 #include "vnode.h"
112 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8_t len)
118 if (name == NULL || len > NAME_MAX || parent == NULL || vnode == NULL) {
137 pc->childVnode = vnode;
140 LOS_ListAdd((&(vnode->parentPathCaches)), (&(pc->parentEntry)));
162 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode)
171 *vnode = pc->childVnode;
179 static void FreeChildPathCache(struct Vnode *vnode)
184 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &(vnode->childPathCaches), struct PathCache, childEntry) {
189 static void FreeParentPathCache(struct Vnode *vnode)
194 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &(vnode->parentPathCaches), struct PathCache, parentEntry) {
199 void VnodePathCacheFree(struct Vnode *vnode)
201 if (vnode == NULL) {
204 FreeParentPathCache(vnode);
205 FreeChildPathCache(vnode);