Lines Matching refs:file_ptr
41 static long rootfs_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in rootfs_open() argument
45 static long rootfs_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) { return 0; } in rootfs_close() argument
46 static long rootfs_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) { re… in rootfs_read() argument
47 static long rootfs_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) { r… in rootfs_write() argument
48 static long rootfs_lseek(struct vfs_file_t *file_ptr, long offset, long origin) { return 0; } in rootfs_lseek() argument
49 static long rootfs_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd,… in rootfs_ioctl() argument
51 static long rootfs_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in rootfs_readdir() argument
54 struct vfs_dir_entry_t *dentry = file_ptr->dEntry; in rootfs_readdir()
57 for (int i = 0; i <= file_ptr->position; ++i) in rootfs_readdir()
66 ++file_ptr->position; in rootfs_readdir()
76 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in rootfs_readdir()