Home
last modified time | relevance | path

Searched refs:Vnode (Results 1 – 25 of 41) sorted by relevance

12

/kernel/liteos_a/fs/vfs/include/
Dvnode.h113 struct Vnode { struct
122 struct Vnode *parent; /* parent vnode */ argument
139 int (*Create)(struct Vnode *parent, const char *name, int mode, struct Vnode **vnode); argument
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 *vnode, char *buffer, off_t pos, size_t buflen);
144 int (*Close)(struct Vnode *vnode);
145 int (*Reclaim)(struct Vnode *vnode);
146 int (*Unlink)(struct Vnode *parent, struct Vnode *vnode, const char *fileName);
[all …]
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…
54 int PathCacheLookup(struct Vnode *parent, const char *name, int len, struct Vnode **vnode);
55 void VnodePathCacheFree(struct Vnode *vnode);
/kernel/liteos_a/fs/fat/os_adapt/
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 *vnode, struct IATTR *attr);
135 int fatfs_opendir(struct Vnode *vnode, struct fs_dirent_s *idir);
136 int fatfs_readdir(struct Vnode *vnode, struct fs_dirent_s *idir);
[all …]
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 *vp = filep->f_vnode; in fatfs_open()
681 struct Vnode *vp = filep->f_vnode; in fatfs_read()
737 struct Vnode *vp = filep->f_vnode; in fatfs_lseek64()
842 struct Vnode *vp = filep->f_vnode; in fatfs_write()
[all …]
Dformat.c46 struct Vnode *device = NULL; in format()
/kernel/liteos_a/fs/vfs/operation/
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 *parent, struct Vnode *vnode, const char *dirName) in ErrorVopRmdir()
94 static int ErrorVopMkdir(struct Vnode *parent, const char *dirName, mode_t mode, struct Vnode **vno… in ErrorVopMkdir()
103 static int ErrorVopReaddir(struct Vnode *vnode, struct fs_dirent_s *dir) in ErrorVopReaddir()
110 static int ErrorVopOpendir(struct Vnode *vnode, struct fs_dirent_s *dir) in ErrorVopOpendir()
[all …]
Dvfs_chattr.c60 struct Vnode *vnode = NULL; in chattr()
Dvfs_check.c53 struct Vnode *vnode = NULL; in fscheck()
Dvfs_utime.c54 struct Vnode *vnode = NULL; in utime()
/kernel/liteos_a/fs/vfs/
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* vnode = NULL; in VnodeAlloc()
[all …]
Dvnode_hash.c66 struct Vnode *node = NULL; in VnodeHashDump()
68 LOS_DL_LIST_FOR_EACH_ENTRY(node, nhead, struct Vnode, hashEntry) { in VnodeHashDump()
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… in VfsHashGet()
91 struct Vnode *curVnode = NULL; in VfsHashGet()
99 LOS_DL_LIST_FOR_EACH_ENTRY(curVnode, list, struct Vnode, hashEntry) { in VfsHashGet()
118 void VfsHashRemove(struct Vnode *vnode) in VfsHashRemove()
128 int VfsHashInsert(struct Vnode *vnode, uint32_t hash) in VfsHashInsert()
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 le… in PathCacheInsert()
112 struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, const char *name, uint8… 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 *vnode) in VnodePathCacheFree()
Dmount.c47 struct Mount *MountAlloc(struct Vnode *vnodeBeCovered, struct MountOps *fsop) in MountAlloc()
/kernel/liteos_a/fs/proc/os_adapt/
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 *device, const void *data) in VfsProcfsMount()
194 struct Vnode *vp = NULL; in VfsProcfsMount()
221 int VfsProcfsUnmount(void *handle, struct Vnode **blkdriver) in VfsProcfsUnmount()
[all …]
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()
124 struct Vnode *vnode = NULL; in PageCacheMapProcess()
128 LOS_DL_LIST_FOR_EACH_ENTRY(vnode, vnodeList, struct Vnode, actFreeEntry) { in PageCacheMapProcess()
/kernel/liteos_a/fs/include/fs/
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);
Dfd_table.h63 struct Vnode *rootVnode;
/kernel/liteos_a/fs/jffs2/src/
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 **ppVnode) in VfsJffs2Create()
242 struct Vnode *newVnode = NULL; in VfsJffs2Create()
279 ssize_t VfsJffs2ReadPage(struct Vnode *vnode, char *buffer, off_t off) in VfsJffs2ReadPage()
[all …]
/kernel/liteos_a/fs/vfs/include/bcache/
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/
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/src/
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 *blkDrv, struct disk_divide_info *info) in DiskPartitionRecognition()
[all …]
Ddisk_shellcmd.c43 struct Vnode *node = NULL; in osShellCmdPartInfo()
/kernel/liteos_a/drivers/block/disk/include/
Ddisk.h181 struct Vnode *dev; /* device */
205 struct Vnode *dev; /* dev devices used in the partition */
586 los_part *los_part_find(struct Vnode *blkDriver);
/kernel/liteos_a/kernel/base/vm/
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()
/kernel/liteos_a/fs/proc/src/
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()
609 (void)pn->procFileOps->open((struct Vnode *)pn, pn->pf); in OpenProcFile()
711 result = pde->procFileOps->release((struct Vnode *)pde, pde->pf); in CloseProcFile()

12