Home
last modified time | relevance | path

Searched refs:vnode (Results 51 - 75 of 137) sorted by relevance

123456

/third_party/NuttX/fs/driver/
H A Dfs_unregisterdriver.c27 #include "vnode.h"
39 * Remove the character driver vnode at 'path' from the pseudo-file system
45 struct Vnode *vnode = NULL; in unregister_driver() local
52 ret = VnodeLookup(path, &vnode, V_DUMMY); in unregister_driver()
58 if (vnode->type != VNODE_TYPE_CHR && vnode->type != VNODE_TYPE_BLK) in unregister_driver()
63 ret = VnodeFree(vnode); in unregister_driver()
H A Dfs_blockproxy.c155 struct Vnode *vnode = NULL; in block_proxy() local
206 vnode = filep->f_vnode; in block_proxy()
208 vnode->type = VNODE_TYPE_BCHR; in block_proxy()
/kernel/liteos_a/kernel/base/vm/
H A Dlos_vm_fault.c49 #include "vnode.h"
113 VM_ERR("region args invalid, file path: %s", region->unTypeData.rf.vnode->filePath); in OsDoReadFault()
117 (VOID)LOS_MuxAcquire(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
131 (VOID)LOS_MuxRelease(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
135 (VOID)LOS_MuxRelease(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
138 (VOID)LOS_MuxRelease(&region->unTypeData.rf.vnode->mapping.mux_lock); in OsDoReadFault()
152 LOS_SpinLockSave(&region->unTypeData.rf.vnode->mapping.list_lock, &intSave); in OsCowUnmapOrg()
153 fpage = OsFindGetEntry(&region->unTypeData.rf.vnode->mapping, vmf->pgoff); in OsCowUnmapOrg()
166 LOS_SpinUnlockRestore(&region->unTypeData.rf.vnode->mapping.list_lock, intSave); in OsCowUnmapOrg()
204 (VOID)LOS_MuxAcquire(&region->unTypeData.rf.vnode in OsDoCowFault()
[all...]
/kernel/liteos_a/fs/fat/os_adapt/
H A Dfatfs.h128 int fatfs_truncate64(struct Vnode *vnode, off64_t len);
129 int fatfs_truncate(struct Vnode *vnode, off_t len);
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);
137 int fatfs_rewinddir(struct Vnode *vnode, struct fs_dirent_s *dir);
138 int fatfs_closedir(struct Vnode *vnode, struct fs_dirent_s *dir);
145 int fatfs_fscheck(struct Vnode* vnode, struct fs_dirent_s *dir);
/third_party/NuttX/drivers/pipes/
H A Dpipe.c133 struct Vnode *vnode = filep->f_vnode; in pipe_close() local
134 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipe_close()
145 if (ret == 0 && vnode->useCount <= 1) in pipe_close()
160 int pipe_unlink(struct Vnode *vnode) in pipe_unlink() argument
162 struct pipe_dev_s *dev = ((struct drv_data *)vnode->data)->priv; in pipe_unlink()
171 ret = pipecommon_unlink(vnode); in pipe_unlink()
192 * pipe() creates a pair of file descriptors, pointing to a pipe vnode,
214 struct Vnode *vnode = NULL; in UpdateDev() local
219 ret = VnodeLookup(dev->name, &vnode, 0); in UpdateDev()
226 data = (struct drv_data *)vnode in UpdateDev()
[all...]
H A Dpipe_common.c171 struct Vnode *vnode = filep->f_vnode; in pipecommon_open() local
172 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_open()
197 if (vnode->useCount == 1 && dev->d_buffer == NULL) in pipecommon_open()
269 vnode->useCount++; in pipecommon_open()
280 struct Vnode *vnode = filep->f_vnode; in pipecommon_close() local
281 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_close()
300 /* Check if the decremented vnode reference count would go to zero */ in pipecommon_close()
302 if (vnode->useCount > 1) in pipecommon_close()
366 vnode->useCount--; in pipecommon_close()
378 struct Vnode *vnode in pipecommon_read() local
539 struct Vnode *vnode = filep->f_vnode; pipecommon_write() local
700 struct Vnode *vnode = filep->f_vnode; pipecommon_poll() local
785 pipecommon_unlink(struct Vnode *vnode) pipecommon_unlink() argument
[all...]
/kernel/linux/linux-6.6/fs/afs/
H A Drotate.c18 * Begin iteration through a server list, starting with the vnode's last used
22 struct afs_vnode *vnode) in afs_start_fs_iteration()
37 cb_server = vnode->cb_server; in afs_start_fs_iteration()
39 /* See if the vnode's preferred record is still available */ in afs_start_fs_iteration()
49 * serving this vnode, then we can't switch to another server in afs_start_fs_iteration()
58 write_seqlock(&vnode->cb_lock); in afs_start_fs_iteration()
59 ASSERTCMP(cb_server, ==, vnode->cb_server); in afs_start_fs_iteration()
60 vnode->cb_server = NULL; in afs_start_fs_iteration()
61 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) in afs_start_fs_iteration()
62 vnode in afs_start_fs_iteration()
21 afs_start_fs_iteration(struct afs_operation *op, struct afs_vnode *vnode) afs_start_fs_iteration() argument
113 struct afs_vnode *vnode = op->file[0].vnode; afs_select_fileserver() local
[all...]
H A Dinternal.h182 struct list_head vnode_link; /* Link in vnode->wb_keys */
201 * Record of an outstanding read operation on a vnode.
209 struct afs_vnode *vnode; /* The file being read into. */ member
607 AFS_VNODE_LOCK_NONE, /* The vnode has no lock on the server */
614 AFS_VNODE_LOCK_DELETED, /* The vnode has been deleted whilst we have a lock */
625 struct afs_volume *volume; /* volume on which vnode resides */
631 struct rw_semaphore validate_lock; /* lock for validating this vnode */
637 #define AFS_VNODE_CB_PROMISED 0 /* Set if vnode has a callback promise */
638 #define AFS_VNODE_UNSET 1 /* set if vnode attributes not yet set */
640 #define AFS_VNODE_ZAP_DATA 3 /* set if vnode'
672 afs_vnode_cache(struct afs_vnode *vnode) afs_vnode_cache() argument
681 afs_vnode_set_cache(struct afs_vnode *vnode, struct fscache_cookie *cookie) afs_vnode_set_cache() argument
767 struct afs_vnode *vnode; global() member
882 afs_set_cache_aux(struct afs_vnode *vnode, struct afs_vnode_cache_aux *aux) afs_set_cache_aux() argument
888 afs_invalidate_cache(struct afs_vnode *vnode, unsigned int flags) afs_invalidate_cache() argument
989 afs_calc_vnode_cb_break(struct afs_vnode *vnode) afs_calc_vnode_cb_break() argument
994 afs_cb_is_broken(unsigned int cb_break, const struct afs_vnode *vnode) afs_cb_is_broken() argument
1141 afs_op_set_vnode(struct afs_operation *op, unsigned int n, struct afs_vnode *vnode) afs_op_set_vnode() argument
1211 afs_v2net(struct afs_vnode *vnode) afs_v2net() argument
1592 AFS_VNODE_TO_I(struct afs_vnode *vnode) AFS_VNODE_TO_I() argument
1615 afs_set_i_size(struct afs_vnode *vnode, u64 size) afs_set_i_size() argument
1639 afs_bad(struct afs_vnode *vnode, enum afs_file_error where) afs_bad() argument
[all...]
H A Dfsclient.c26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
279 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status()
290 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status()
438 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data64()
474 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data()
546 *bp++ = htonl(dvp->fid.vnode); in afs_fs_create_file()
599 *bp++ = htonl(dvp->fid.vnode); in afs_fs_make_dir()
678 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_file()
725 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_dir()
802 *bp++ = htonl(dvp->fid.vnode); in afs_fs_link()
[all...]
/kernel/linux/linux-5.10/fs/afs/
H A Drotate.c18 * Begin iteration through a server list, starting with the vnode's last used
22 struct afs_vnode *vnode) in afs_start_fs_iteration()
37 cb_server = vnode->cb_server; in afs_start_fs_iteration()
39 /* See if the vnode's preferred record is still available */ in afs_start_fs_iteration()
49 * serving this vnode, then we can't switch to another server in afs_start_fs_iteration()
58 write_seqlock(&vnode->cb_lock); in afs_start_fs_iteration()
59 ASSERTCMP(cb_server, ==, vnode->cb_server); in afs_start_fs_iteration()
60 vnode->cb_server = NULL; in afs_start_fs_iteration()
61 if (test_and_clear_bit(AFS_VNODE_CB_PROMISED, &vnode->flags)) in afs_start_fs_iteration()
62 vnode in afs_start_fs_iteration()
21 afs_start_fs_iteration(struct afs_operation *op, struct afs_vnode *vnode) afs_start_fs_iteration() argument
113 struct afs_vnode *vnode = op->file[0].vnode; afs_select_fileserver() local
[all...]
H A Dinternal.h179 struct list_head vnode_link; /* Link in vnode->wb_keys */
198 * Record of an outstanding read operation on a vnode.
211 struct afs_vnode *vnode; member
599 AFS_VNODE_LOCK_NONE, /* The vnode has no lock on the server */
606 AFS_VNODE_LOCK_DELETED, /* The vnode has been deleted whilst we have a lock */
618 struct afs_volume *volume; /* volume on which vnode resides */
627 struct rw_semaphore validate_lock; /* lock for validating this vnode */
633 #define AFS_VNODE_CB_PROMISED 0 /* Set if vnode has a callback promise */
634 #define AFS_VNODE_UNSET 1 /* set if vnode attributes not yet set */
636 #define AFS_VNODE_ZAP_DATA 3 /* set if vnode'
664 afs_vnode_cache(struct afs_vnode *vnode) afs_vnode_cache() argument
748 struct afs_vnode *vnode; global() member
968 afs_calc_vnode_cb_break(struct afs_vnode *vnode) afs_calc_vnode_cb_break() argument
973 afs_cb_is_broken(unsigned int cb_break, const struct afs_vnode *vnode) afs_cb_is_broken() argument
1117 afs_op_set_vnode(struct afs_operation *op, unsigned int n, struct afs_vnode *vnode) afs_op_set_vnode() argument
1185 afs_v2net(struct afs_vnode *vnode) afs_v2net() argument
1557 AFS_VNODE_TO_I(struct afs_vnode *vnode) AFS_VNODE_TO_I() argument
1580 afs_set_i_size(struct afs_vnode *vnode, u64 size) afs_set_i_size() argument
1604 afs_bad(struct afs_vnode *vnode, enum afs_file_error where) afs_bad() argument
[all...]
H A Dfsclient.c25 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
278 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status()
289 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status()
465 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data64()
501 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_data()
573 *bp++ = htonl(dvp->fid.vnode); in afs_fs_create_file()
626 *bp++ = htonl(dvp->fid.vnode); in afs_fs_make_dir()
705 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_file()
752 *bp++ = htonl(dvp->fid.vnode); in afs_fs_remove_dir()
829 *bp++ = htonl(dvp->fid.vnode); in afs_fs_link()
[all...]
/third_party/NuttX/fs/vfs/
H A Dfs_mkdir.c30 #include "vnode.h"
41 struct Vnode *vnode = NULL; in do_mkdir() local
76 ret = VnodeLookup(fullpath, &vnode, V_DUMMY|V_CREATE); in do_mkdir()
81 vnode->mode = mode | S_IFDIR; in do_mkdir()
82 vnode->type = VNODE_TYPE_DIR; in do_mkdir()
119 ret = parentVnode->vop->Mkdir(parentVnode, dirname, mode, &vnode); in do_mkdir()
131 struct PathCache *dt = PathCacheAlloc(parentVnode, vnode, dirname, strlen(dirname)); in do_mkdir()
136 vnode->filePath = strdup(fullpath); in do_mkdir()
H A Dfs_lseek64.c50 #include "vnode.h"
78 struct Vnode *vnode = NULL; in file_seek64() local
83 vnode = filep->f_vnode; in file_seek64()
85 if (vnode == NULL) in file_seek64()
H A Dfs_lseek.c32 #include "vnode.h"
60 struct Vnode *vnode; in file_seek() local
64 vnode = filep->f_vnode; in file_seek()
66 if (!vnode) in file_seek()
H A Dfs_symlink.c33 #include "vnode.h"
36 int follow_symlink(int dirfd, const char *path, struct Vnode **vnode, char **fullpath) in follow_symlink() argument
64 /* The object of fullpath is not exist. Return its parent's vnode. */ in follow_symlink()
65 *vnode = newvnode; in follow_symlink()
70 /* The object of fullpath is exist, and is not a symbol link. Return its vnode. */ in follow_symlink()
71 *vnode = newvnode; in follow_symlink()
/kernel/liteos_a/fs/proc/os_adapt/
H A Dproc_vfs.c80 int VfsProcfsCreate(struct Vnode* parent, const char *name, int mode, struct Vnode **vnode) in VfsProcfsCreate() argument
115 *vnode = vp; in VfsProcfsCreate()
243 int VfsProcfsMkdir(struct Vnode *parent, const char *dirName, mode_t mode, struct Vnode **vnode) in VfsProcfsMkdir() argument
256 *vnode = EntryToVnode(pde); in VfsProcfsMkdir()
257 (*vnode)->vop = parent->vop; in VfsProcfsMkdir()
258 (*vnode)->parent = parent; in VfsProcfsMkdir()
259 (*vnode)->originMount = parent->originMount; in VfsProcfsMkdir()
260 if ((*vnode)->type == VNODE_TYPE_DIR) { in VfsProcfsMkdir()
261 (*vnode)->mode = S_IFDIR | PROCFS_DEFAULT_MODE; in VfsProcfsMkdir()
263 (*vnode) in VfsProcfsMkdir()
268 VfsProcfsRmdir(struct Vnode *parent, struct Vnode *vnode, const char *dirName) VfsProcfsRmdir() argument
428 VfsProcfsReadlink(struct Vnode *vnode, char *buffer, size_t bufLen) VfsProcfsReadlink() argument
[all...]
H A Dfs_cache_proc.c33 #include "vnode.h"
124 struct Vnode *vnode = NULL; in PageCacheMapProcess() local
128 LOS_DL_LIST_FOR_EACH_ENTRY(vnode, vnodeList, struct Vnode, actFreeEntry) { in PageCacheMapProcess()
129 mapping = &vnode->mapping; in PageCacheMapProcess()
130 LosBufPrintf(buf, "%p, %s:[", vnode, vnode->filePath); in PageCacheMapProcess()
/third_party/NuttX/drivers/bch/
H A Dbchlib_setup.c67 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup()
74 struct drv_data *drv = (struct drv_data *)bch->vnode->data; in bchlib_setup()
77 DEBUGASSERT(bch->vnode && bops && bops->geometry); in bchlib_setup()
79 ret = bops->geometry(bch->vnode, &geo); in bchlib_setup()
110 part = los_part_find(bch->vnode); in bchlib_setup()
/kernel/linux/linux-5.10/fs/proc/
H A Dbootconfig.c28 struct xbc_node *leaf, *vnode; in copy_xbc_key_value_list() local
46 vnode = xbc_node_get_child(leaf); in copy_xbc_key_value_list()
47 if (vnode) { in copy_xbc_key_value_list()
48 xbc_array_for_each_value(vnode, val) { in copy_xbc_key_value_list()
54 q, val, q, vnode->next ? ", " : "\n"); in copy_xbc_key_value_list()
/kernel/linux/linux-6.6/fs/proc/
H A Dbootconfig.c28 struct xbc_node *leaf, *vnode; in copy_xbc_key_value_list() local
46 vnode = xbc_node_get_child(leaf); in copy_xbc_key_value_list()
47 if (vnode) { in copy_xbc_key_value_list()
48 xbc_array_for_each_value(vnode, val) { in copy_xbc_key_value_list()
54 q, val, q, xbc_node_is_array(vnode) ? ", " : "\n"); in copy_xbc_key_value_list()
/kernel/liteos_a/fs/vfs/include/
H A Dpath_cache.h36 #include "vnode.h"
39 struct Vnode *parentVnode; /* vnode points to the cache */
40 struct Vnode *childVnode; /* vnode the cache points to */
41 LIST_ENTRY parentEntry; /* list entry for cache list in the parent vnode */
42 LIST_ENTRY childEntry; /* list entry for cache list in the child vnode */
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/kernel/common/
H A Dvirtual_serial.c213 struct Vnode *vnode = NULL; in virtual_serial_init() local
223 ret = VnodeLookup(deviceName, &vnode, V_DUMMY); in virtual_serial_init()
231 g_serialFilep.f_vnode = vnode; in virtual_serial_init()
232 g_serialFilep.ops = ((struct drv_data *)vnode->data)->ops; in virtual_serial_init()
/kernel/linux/linux-5.10/include/linux/
H A Dbootconfig.h96 struct xbc_node **vnode);
107 * @vnode: A container pointer of XBC value node.
110 * the value if found. Found value node is stored in *@vnode.
111 * Note that this can return 0-length string and store NULL in *@vnode for
115 xbc_find_value(const char *key, struct xbc_node **vnode) in xbc_find_value() argument
117 return xbc_node_find_value(NULL, key, vnode); in xbc_find_value()
/kernel/liteos_a/fs/include/fs/
H A Dmount.h36 #include "vnode.h"
47 struct Vnode *vnodeBeCovered; /* vnode we mounted on */
48 struct Vnode *vnodeCovered; /* syncer vnode */
49 struct Vnode *vnodeDev; /* dev vnode */
51 int vnodeSize; /* size of vnode list */
62 int (*Mount)(struct Mount *mount, struct Vnode *vnode, const void *data);
73 struct Mount *MountAlloc(struct Vnode *vnode, struct MountOps *mop);

Completed in 19 milliseconds

123456