Home
last modified time | relevance | path

Searched refs:Vnode (Results 1 - 25 of 39) sorted by relevance

12

/kernel/liteos_a/fs/vfs/include/
H A Dvnode.h93 * Vnode types. VNODE_TYPE_UNKNOWN means no type.
113 struct Vnode { struct
122 struct Vnode *parent; /* parent vnode */
139 int (*Create)(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode);
140 int (*Lookup)(struct Vnode *parent, const char *name, int len, struct Vnode **vnode);
141 int (*Open)(struct Vnode *vnode, int fd, int mode, int flags);
142 ssize_t (*ReadPage)(struct Vnode *vnode, char *buffer, off_t pos);
143 ssize_t (*WritePage)(struct Vnode *vnod
[all...]
H A Dpath_cache.h39 struct Vnode *parentVnode; /* vnode points to the cache */
40 struct Vnode *childVnode; /* vnode the cache points to */
53 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8_t len);
54 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode);
55 void VnodePathCacheFree(struct Vnode *vnode);
/kernel/liteos_a/fs/vfs/operation/
H A Dvfs_force_umount.c38 static int ErrorVopCreate(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode) in ErrorVopCreate()
47 static int ErrorVopLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode) in ErrorVopLookup()
56 static int ErrorVopOpen(struct Vnode *vnode, int fd, int mode, int flags) in ErrorVopOpen()
65 static int ErrorVopClose(struct Vnode *vnode) in ErrorVopClose()
72 static int ErrorVopReclaim(struct Vnode *vnode) in ErrorVopReclaim()
78 static int ErrorVopUnlink(struct Vnode *parent, struct Vnode *vnode, const char *fileName) in ErrorVopUnlink()
86 static int ErrorVopRmdir(struct Vnode *paren
443 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(vnode, nextVnode, GetVnodeActiveList(), struct Vnode, actFreeEntry) VnodeTryFreeAll() argument
[all...]
H A Dvfs_chattr.c60 struct Vnode *vnode = NULL; in chattr()
H A Dvfs_check.c53 struct Vnode *vnode = NULL; in fscheck()
H A Dvfs_utime.c54 struct Vnode *vnode = NULL; in utime()
/kernel/liteos_a/fs/fat/os_adapt/
H A Dfatfs.h119 int fatfs_lookup(struct Vnode *parent, const char *name, int len, struct Vnode **vpp);
120 int fatfs_create(struct Vnode *parent, const char *name, int mode, struct Vnode **vpp);
128 int fatfs_truncate64(struct Vnode *vnode, off64_t len);
129 int fatfs_truncate(struct Vnode *vnode, off_t len);
130 int fatfs_mount(struct Mount *mount, struct Vnode *device, const void *data);
131 int fatfs_umount(struct Mount *mount, struct Vnode **device);
133 int fatfs_stat(struct Vnode *vnode, struct stat *buff);
134 int fatfs_chattr(struct Vnode *vnod
[all...]
H A Dfatfs.c207 int fatfs_hash_cmp(struct Vnode *vp, void *arg) in fatfs_hash_cmp()
346 static int fatfs_create_obj(struct Vnode *parent, const char *name, int mode, struct Vnode **vpp, in fatfs_create_obj()
349 struct Vnode *vp = NULL; in fatfs_create_obj()
497 int fatfs_lookup(struct Vnode *parent, const char *path, int len, struct Vnode **vpp) in fatfs_lookup()
499 struct Vnode *vp = NULL; in fatfs_lookup()
595 int fatfs_create(struct Vnode *parent, const char *name, int mode, struct Vnode **vpp) in fatfs_create()
602 struct Vnode *v in fatfs_open()
[all...]
H A Dformat.c46 struct Vnode *device = NULL; in format()
/kernel/liteos_a/fs/vfs/
H A Dvnode.c45 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* vnod in VnodeAlloc()
[all...]
H A Dpath_cache.c98 static uint32_t NameHash(const char *name, int len, struct Vnode *dvp) in NameHash()
102 hash = LOS_HashFNV32aBuf(&dvp, sizeof(struct Vnode *), hash); in NameHash()
106 static void PathCacheInsert(struct Vnode *parent, struct PathCache *cache, const char* name, int len) in PathCacheInsert()
112 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8_t len) in PathCacheAlloc()
162 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode) in PathCacheLookup()
179 static void FreeChildPathCache(struct Vnode *vnode) in FreeChildPathCache()
189 static void FreeParentPathCache(struct Vnode *vnode) in FreeParentPathCache()
199 void VnodePathCacheFree(struct Vnode *vnod
[all...]
H A Dvnode_hash.c66 struct Vnode *node = NULL; in VnodeHashDump()
68 LOS_DL_LIST_FOR_EACH_ENTRY(node, nhead, struct Vnode, hashEntry) { in VnodeHashDump() argument
76 uint32_t VfsHashIndex(struct Vnode *vnode) in VfsHashIndex()
89 int VfsHashGet(const struct Mount *mount, uint32_t hash, struct Vnode **vnode, VfsHashCmp *fn, void *arg) in VfsHashGet()
91 struct Vnode *curVnode = NULL; in VfsHashGet()
99 LOS_DL_LIST_FOR_EACH_ENTRY(curVnode, list, struct Vnode, hashEntry) { in VfsHashGet() argument
118 void VfsHashRemove(struct Vnode *vnode) in VfsHashRemove()
128 int VfsHashInsert(struct Vnode *vnode, uint32_t hash) in VfsHashInsert()
H A Dmount.c47 struct Mount *MountAlloc(struct Vnode *vnodeBeCovered, struct MountOps *fsop) in MountAlloc()
/kernel/liteos_a/fs/jffs2/src/
H A Dvfs_jffs2.c67 struct Vnode *g_jffs2PartList[CONFIG_MTD_PATTITION_NUM];
69 static void Jffs2SetVtype(struct jffs2_inode *node, struct Vnode *pVnode) in Jffs2SetVtype()
105 int VfsJffs2Bind(struct Mount *mnt, struct Vnode *blkDriver, const void *data) in VfsJffs2Bind()
111 struct Vnode *pv = NULL; in VfsJffs2Bind()
158 int VfsJffs2Unbind(struct Mount *mnt, struct Vnode **blkDriver) in VfsJffs2Unbind()
187 int VfsJffs2Lookup(struct Vnode *parentVnode, const char *path, int len, struct Vnode **ppVnode) in VfsJffs2Lookup()
190 struct Vnode *newVnode = NULL; in VfsJffs2Lookup()
238 int VfsJffs2Create(struct Vnode *parentVnode, const char *path, int mode, struct Vnode **ppVnod
[all...]
/kernel/liteos_a/fs/include/fs/
H A Dmount.h47 struct Vnode *vnodeBeCovered; /* vnode we mounted on */
48 struct Vnode *vnodeCovered; /* syncer vnode */
49 struct Vnode *vnodeDev; /* dev vnode */
62 int (*Mount)(struct Mount *mount, struct Vnode *vnode, const void *data);
63 int (*Unmount)(struct Mount *mount, struct Vnode **blkdriver);
73 struct Mount *MountAlloc(struct Vnode *vnode, struct MountOps *mop);
79 int ForceUmountDev(struct Vnode *dev);
H A Dfd_table.h63 struct Vnode *rootVnode;
/kernel/liteos_a/fs/proc/os_adapt/
H A Dproc_vfs.c48 struct ProcDirEntry *VnodeToEntry(struct Vnode *node) in VnodeToEntry()
53 static struct Vnode *EntryToVnode(struct ProcDirEntry *entry) in EntryToVnode()
55 struct Vnode *node = NULL; in EntryToVnode()
75 int VfsProcfsTruncate(struct Vnode *pVnode, off_t len) in VfsProcfsTruncate()
80 int VfsProcfsCreate(struct Vnode* parent, const char *name, int mode, struct Vnode **vnode) in VfsProcfsCreate()
83 struct Vnode *vp = NULL; in VfsProcfsCreate()
162 int VfsProcfsLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vpp) in VfsProcfsLookup()
192 int VfsProcfsMount(struct Mount *mnt, struct Vnode *devic
[all...]
H A Dfs_cache_proc.c70 struct Vnode *item = NULL; in VnodeListProcess()
71 struct Vnode *nextItem = NULL; in VnodeListProcess()
73 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, list, struct Vnode, actFreeEntry) { in VnodeListProcess() argument
124 struct Vnode *vnode = NULL; in PageCacheMapProcess()
128 LOS_DL_LIST_FOR_EACH_ENTRY(vnode, vnodeList, struct Vnode, actFreeEntry) { in PageCacheMapProcess() argument
174 LosBufPrintf(buf, "Vnode Total:%d Free:%d Virtual:%d Active:%d\n", in FsCacheInfoFill()
/kernel/liteos_a/fs/vfs/include/bcache/
H A Dbcache.h78 typedef INT32 (*BcacheReadFun)(struct Vnode *, /* private data */
83 typedef INT32 (*BcacheWriteFun)(struct Vnode *, /* private data */
229 OsBcache *BlockCacheInit(struct Vnode *devNode,
/kernel/liteos_a/fs/proc/include/
H A Dproc_fs.h90 int (*open)(struct Vnode *vnode, struct ProcFile *pf);
91 int (*release)(struct Vnode *vnode, struct ProcFile *pf);
318 extern struct ProcDirEntry *VnodeToEntry(struct Vnode *node);
/kernel/liteos_a/drivers/block/disk/include/
H A Ddisk.h181 struct Vnode *dev; /* device */
205 struct Vnode *dev; /* dev devices used in the partition */
576 * @param blkDriver [IN] Type #struct Vnode * partition driver vnode.
586 los_part *los_part_find(struct Vnode *blkDriver);
/kernel/liteos_a/drivers/block/disk/src/
H A Ddisk.c271 static los_part *DiskPartAllocate(struct Vnode *dev, UINT64 start, UINT64 count) in DiskPartAllocate()
320 struct Vnode *diskDev = NULL; in DiskAddPart()
321 struct Vnode *partDev = NULL; in DiskAddPart()
445 static INT32 GPTInfoGet(struct Vnode *blkDrv, CHAR *gptBuf) in GPTInfoGet()
489 static INT32 OsGPTPartitionRecognition(struct Vnode *blkDrv, struct disk_divide_info *info, in OsGPTPartitionRecognition()
534 static INT32 DiskGPTPartitionRecognition(struct Vnode *blkDrv, struct disk_divide_info *info) in DiskGPTPartitionRecognition()
586 static INT32 OsMBRInfoGet(struct Vnode *blkDrv, CHAR *mbrBuf) in OsMBRInfoGet()
607 static INT32 OsEBRInfoGet(struct Vnode *blkDrv, const struct disk_divide_info *info, in OsEBRInfoGet()
655 static INT32 OsLogicalPartitionRecognition(struct Vnode *blkDrv, struct disk_divide_info *info, in OsLogicalPartitionRecognition()
694 static INT32 DiskPartitionRecognition(struct Vnode *blkDr
[all...]
H A Ddisk_shellcmd.c43 struct Vnode *node = NULL; in osShellCmdPartInfo()
/kernel/liteos_a/fs/proc/src/
H A Dproc_file.c384 struct Vnode *item = NULL; in ProcEntryClearVnode()
385 struct Vnode *nextItem = NULL; in ProcEntryClearVnode()
388 LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(item, nextItem, GetVnodeActiveList(), struct Vnode, actFreeEntry) { in ProcEntryClearVnode() argument
609 (void)pn->procFileOps->open((struct Vnode *)pn, pn->pf); in OpenProcFile()
711 result = pde->procFileOps->release((struct Vnode *)pde, pde->pf); in CloseProcFile()
/kernel/liteos_a/kernel/base/vm/
H A Dlos_vm_filemap.c175 struct Vnode *vnode = NULL; in OsVmmFileRemove()
235 STATIC UINT32 GetDirtySize(LosFilePage *fpage, struct Vnode *vnode) in GetDirtySize()
267 struct Vnode *vnode = fpage->mapping->host; in OsFlushDirtyPage()
373 struct Vnode *vnode = NULL; in OsVmmFileFault()
512 struct Vnode *vnode = NULL; in OsNamedMMap()

Completed in 15 milliseconds

12