Home
last modified time | relevance | path

Searched refs:fops (Results 1 – 25 of 43) sorted by relevance

12

/components/dfs/dfs_v2/filesystems/devfs/
A Ddevfs.c60 if (device->fops && device->fops->open) in dfs_devfs_open()
100 if (device->fops && device->fops->close) in dfs_devfs_close()
153 if (device->fops && device->fops->read) in dfs_devfs_read()
192 if (device->fops && device->fops->write) in dfs_devfs_write()
232 if (device->fops && device->fops->ioctl) in dfs_devfs_ioctl()
268 if (device->fops && device->fops->poll) in dfs_devfs_poll()
291 if (device->fops && device->fops->flush) in dfs_devfs_flush()
314 if (device->fops && device->fops->lseek) in dfs_devfs_lseek()
360 if (device->fops && device->fops->mmap) in dfs_devfs_mmap()
383 if (device->fops && device->fops->lock) in dfs_devfs_lock()
[all …]
/components/dfs/dfs_v2/filesystems/procfs/
A Dprocfs.c43 if (entry->fops && entry->fops->open) in dfs_procfs_open()
45 ret = entry->fops->open(file); in dfs_procfs_open()
64 if (entry && entry->fops && entry->fops->close) in dfs_procfs_close()
66 ret = entry->fops->close(file); in dfs_procfs_close()
79 if (entry && entry->fops && entry->fops->read) in dfs_procfs_read()
94 if (entry && entry->fops && entry->fops->write) in dfs_procfs_write()
109 if (entry && entry->fops && entry->fops->ioctl) in dfs_procfs_ioctl()
180 if (entry->fops && entry->fops->getdents && ret < count) in dfs_procfs_getdents()
213 if (entry && entry->fops && entry->fops->poll) in dfs_procfs_poll()
228 if (entry && entry->fops && entry->fops->flush) in dfs_procfs_flush()
[all …]
A Dproc.h38 const struct dfs_file_ops *fops; member
52 const struct dfs_file_ops *fops, void *data);
57 const struct dfs_file_ops *fops, void *data);
A Dproc.c30 .fops = RT_NULL,
302 const struct dfs_file_ops *fops, void *data) in proc_mkdir_data() argument
312 dentry->fops = fops; in proc_mkdir_data()
379 const struct dfs_file_ops *fops, void *data) in proc_create_data() argument
386 dentry->fops = fops ? fops : &proc_file_ops; in proc_create_data()
415 dentry->fops = &proc_file_ops; in proc_create_single_data()
A Dproc_pid.c34 const struct dfs_file_ops *fops; member
392 pid_dentry_base[j].fops, pid_dentry_base[j].data); in proc_pid()
406 pid_dentry_base[j].fops, pid_dentry_base[j].data); in proc_pid()
/components/dfs/dfs_v1/src/
A Ddfs_file.c79 vnode->fops = fops; in dfs_vnode_init()
239 vnode->fops = fs->ops->fops; /* set file ops */ in dfs_file_open()
260 if (vnode->fops->open == NULL) in dfs_file_open()
346 if (vnode->fops->close != NULL) in dfs_file_close()
407 if (fd->vnode->fops->ioctl != NULL) in dfs_file_ioctl()
434 if (fd->vnode->fops->read == NULL) in dfs_file_read()
546 if (fd->vnode->fops->write == NULL) in dfs_file_write()
566 if (fd->vnode->fops->flush == NULL) in dfs_file_flush()
569 return fd->vnode->fops->flush(fd); in dfs_file_flush()
587 if (fd->vnode->fops->lseek == NULL) in dfs_file_lseek()
[all …]
A Ddfs.c524 if (fd == NULL || fd->vnode->fops == NULL || fd->vnode->path == NULL) continue; in fd_is_open()
947 if (fd && fd->vnode->fops) in list_fd()
1001 if (fd && fd->vnode->fops) in lsofp()
/components/dfs/dfs_v2/src/
A Ddfs_file.c758 file->fops = file->vnode->fops; in dfs_file_open()
850 if (ref_count == 1 && file->fops && file->fops->close) in dfs_file_close()
909 else if (!file->fops || !file->fops->read) in dfs_file_pread()
970 else if (!file->fops || !file->fops->read) in dfs_file_read()
1037 else if (!file->fops || !file->fops->write) in dfs_file_pwrite()
1110 else if (!file->fops || !file->fops->write) in dfs_file_write()
1393 if (file->fops && file->fops->ioctl) in dfs_file_fstat()
1501 if (file->fops && file->fops->ioctl) in dfs_file_ioctl()
1642 if (file->fops->flush) in dfs_file_fsync()
2270 if (file->fops->flush) in dfs_file_flush()
[all …]
A Ddfs_vnode.c30 int dfs_vnode_init(struct dfs_vnode *vnode, int type, const struct dfs_file_ops *fops) in dfs_vnode_init() argument
39 vnode->fops = fops; in dfs_vnode_init()
A Ddfs.c604 fdt_dst->fds[newfd]->fops = fdt_src->fds[fd_src]->fops; in dfs_fdtable_dup()
791 file->fops = fdtab->fds[oldfd]->fops; in dfs_dup_from()
/components/dfs/dfs_v1/filesystems/devfs/
A Ddevfs.c234 if (device->fops) in dfs_device_fs_open()
237 file->vnode->fops = device->fops; in dfs_device_fs_open()
241 if (file->vnode->fops->open) in dfs_device_fs_open()
243 result = file->vnode->fops->open(file); in dfs_device_fs_open()
/components/dfs/dfs_v1/include/
A Ddfs_file.h50 const struct dfs_file_ops *fops; member
83 int dfs_vnode_init(struct dfs_vnode *vnode, int type, const struct dfs_file_ops *fops);
A Ddfs_fs.h33 const struct dfs_file_ops *fops; member
/components/dfs/dfs_v2/include/
A Ddfs_file.h69 const struct dfs_file_ops *fops; member
96 const struct dfs_file_ops *fops; member
124 int dfs_vnode_init(struct dfs_vnode *vnode, int type, const struct dfs_file_ops *fops);
/components/lwp/terminal/
A Dtty_ptmx.c41 file->vnode->fops = &ptm_fops; in ptm_fops_open()
297 ptmx_device->fops = &ptm_fops; in lwp_ptmx_init()
338 sysptmx_rtdev->fops = &sysptmx_file_ops; in _sys_ptmx_init()
A Dtty_ctty.c95 ctty->fops = &ctty_file_ops; in lwp_ctty_register()
A Dtty_cons.c123 _cons_rtdev.fops = &_cons_fops; in _cons_init()
/components/drivers/include/drivers/core/
A Ddriver.h36 const struct filesystem_ops *fops; member
/components/libc/posix/io/poll/
A Dpoll.c221 if (f->vnode->fops->poll) in do_pollfd()
225 mask = f->vnode->fops->poll(f, req); in do_pollfd()
/components/net/sal/socket/
A Dnet_sockets.c69 d->fops = dfs_net_get_fops(); in accept()
649 d->fops = dfs_net_get_fops(); in socket()
/components/drivers/usb/cherryusb/platform/rtthread/
A Dusbd_adb_shell.c125 device->fops = NULL; in usbd_adb_shell_init()
/components/dfs/dfs_v2/filesystems/ptyfs/
A Dptyfs.c482 vnode->fops = &_default_fops; in ptyfs_ops_lookup()
524 vnode->fops = pty_file->device ? pty_file->device->fops : RT_NULL; in ptyfs_ops_create_vnode()
/components/dfs/dfs_v1/filesystems/mqueue/
A Ddfs_mqueue.c146 .fops = &_mqueue_fops,
/components/libc/posix/io/epoll/
A Depoll.c337 df->fops = &epoll_fops; in epoll_epf_init()
749 if (df->vnode->fops->poll) in epoll_get_event()
752 mask = df->vnode->fops->poll(df, req); in epoll_get_event()
/components/drivers/block/
A Dblk_dfs.c244 dev->fops = &blk_fops; in device_set_blk_fops()

Completed in 31 milliseconds

12