• Home
  • Raw
  • Download

Lines Matching refs:Vnode

45 static struct Vnode *g_rootVnode = NULL;
48 #define ENTRY_TO_VNODE(ptr) LOS_DL_LIST_ENTRY(ptr, struct Vnode, actFreeEntry)
82 static struct Vnode *GetFromFreeList(void) in GetFromFreeList()
87 struct Vnode *vnode = NULL; in GetFromFreeList()
101 struct Vnode *VnodeReclaimLru(void) in VnodeReclaimLru()
103 struct Vnode *item = NULL; in VnodeReclaimLru()
104 struct Vnode *nextItem = NULL; in VnodeReclaimLru()
107 … LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &g_vnodeActiveList, struct Vnode, actFreeEntry) { in VnodeReclaimLru()
134 int VnodeAlloc(struct VnodeOps *vop, struct Vnode **newVnode) in VnodeAlloc()
136 struct Vnode* vnode = NULL; in VnodeAlloc()
141 vnode = (struct Vnode *)zalloc(sizeof(struct Vnode)); in VnodeAlloc()
180 int VnodeFree(struct Vnode *vnode) in VnodeFree()
210 (void)memset_s(vnode, sizeof(struct Vnode), 0, sizeof(struct Vnode)); in VnodeFree()
221 struct Vnode *vnode = NULL; in VnodeFreeAll()
222 struct Vnode *nextVnode = NULL; in VnodeFreeAll()
225 …LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(vnode, nextVnode, &g_vnodeActiveList, struct Vnode, actFreeEntry) { in VnodeFreeAll()
239 struct Vnode *vnode = NULL; in VnodeInUseIter()
241 LOS_DL_LIST_FOR_EACH_ENTRY(vnode, &g_vnodeActiveList, struct Vnode, actFreeEntry) { in VnodeInUseIter()
286 static int PreProcess(const char *originPath, struct Vnode **startVnode, char **path) in PreProcess()
300 static struct Vnode *ConvertVnodeIfMounted(struct Vnode *vnode) in ConvertVnodeIfMounted()
322 static void RefreshLRU(struct Vnode *vnode) in RefreshLRU()
332 static int ProcessVirtualVnode(struct Vnode *parent, uint32_t flags, struct Vnode **vnode) in ProcessVirtualVnode()
345 static int Step(char **currentDir, struct Vnode **currentVnode, uint32_t flags) in Step()
349 struct Vnode *nextVnode = NULL; in Step()
395 int VnodeLookupAt(const char *path, struct Vnode **result, uint32_t flags, struct Vnode *orgVnode) in VnodeLookupAt()
400 struct Vnode *startVnode = NULL; in VnodeLookupAt()
426 struct Vnode *currentVnode = startVnode; in VnodeLookupAt()
473 int VnodeLookup(const char *path, struct Vnode **vnode, uint32_t flags) in VnodeLookup()
478 int VnodeLookupFullpath(const char *fullpath, struct Vnode **vnode, uint32_t flags) in VnodeLookupFullpath()
483 static void ChangeRootInternal(struct Vnode *rootOld, char *dirname) in ChangeRootInternal()
488 struct Vnode *node = NULL; in ChangeRootInternal()
489 struct Vnode *nodeInFs = NULL; in ChangeRootInternal()
518 void ChangeRoot(struct Vnode *rootNew) in ChangeRoot()
520 struct Vnode *rootOld = g_rootVnode; in ChangeRoot()
537 static int VnodeReaddir(struct Vnode *vp, struct fs_dirent_s *dir) in VnodeReaddir()
579 int VnodeOpendir(struct Vnode *vnode, struct fs_dirent_s *dir) in VnodeOpendir()
586 int VnodeClosedir(struct Vnode *vnode, struct fs_dirent_s *dir) in VnodeClosedir()
593 int VnodeCreate(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode) in VnodeCreate()
596 struct Vnode *newVnode = NULL; in VnodeCreate()
622 struct Vnode *devNode = NULL; in VnodeDevInit()
643 int VnodeGetattr(struct Vnode *vnode, struct stat *buf) in VnodeGetattr()
653 struct Vnode *VnodeGetRoot(void) in VnodeGetRoot()
658 static int VnodeChattr(struct Vnode *vnode, struct IATTR *attr) in VnodeChattr()
679 int VnodeDevLookup(struct Vnode *parentVnode, const char *path, int len, struct Vnode **vnode) in VnodeDevLookup()
701 struct Vnode *item = NULL; in VnodeMemoryDump()
702 struct Vnode *nextItem = NULL; in VnodeMemoryDump()
705 … LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &g_vnodeActiveList, struct Vnode, actFreeEntry) { in VnodeMemoryDump()
716 PRINTK("Vnode memory size = %d(B)\n", vnodeCount * sizeof(struct Vnode)); in VnodeMemoryDump()
720 struct Vnode *VnodeFind(int fd) in VnodeFind()
757 struct Vnode *item = NULL; in VnodeClearCache()
758 struct Vnode *nextItem = NULL; in VnodeClearCache()
762 … LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, &g_vnodeActiveList, struct Vnode, actFreeEntry) { in VnodeClearCache()
778 struct Vnode *GetCurrRootVnode(void) in GetCurrRootVnode()