Lines Matching refs:file_ptr
105 static long procfs_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in procfs_open() argument
168 file_ptr->private_data = fdata; in procfs_open()
171 static long procfs_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr) in procfs_close() argument
175 static long procfs_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in procfs_read() argument
178 … struct procfs_file_private_data *priv = (struct procfs_file_private_data *)file_ptr->private_data; in procfs_read()
218 static long procfs_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in procfs_write() argument
230 static long procfs_lseek(struct vfs_file_t *file_ptr, long offset, long whence) in procfs_lseek() argument
232 struct vfs_index_node_t *inode = file_ptr->dEntry->dir_inode; in procfs_lseek()
241 pos = file_ptr->position + offset; in procfs_lseek()
244 pos = file_ptr->dEntry->dir_inode->file_size + offset; in procfs_lseek()
252 if (pos < 0 || pos > file_ptr->dEntry->dir_inode->file_size) in procfs_lseek()
254 file_ptr->position = pos; in procfs_lseek()
258 static long procfs_ioctl(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr, uint64_t cmd,… in procfs_ioctl() argument
272 static long procfs_readdir(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler) in procfs_readdir() argument
274 struct vfs_dir_entry_t *dentry = file_ptr->dEntry; in procfs_readdir()
277 for (int i = 0; i <= file_ptr->position; ++i) in procfs_readdir()
285 ++file_ptr->position; in procfs_readdir()
297 …return filler(dirent, file_ptr->position - 1, name, target_dent->name_length, dentry_type, file_pt… in procfs_readdir()