Lines Matching defs:file
3 * fs/epfs/file.c
9 #include <linux/file.h>
17 long epfs_set_origin_fd(struct file *file, unsigned long arg)
20 struct file *origin_file;
21 struct inode *inode = file->f_inode;
31 epfs_err("Original file not exist!");
86 long epfs_set_range(struct file *file, unsigned long arg)
88 struct inode *inode = file->f_inode;
98 epfs_err("origin file not exist!");
152 static long __epfs_ioctl(struct file *file, unsigned int cmd,
172 return epfs_set_origin_fd(file, arg);
174 return epfs_set_range(file, arg);
181 static long epfs_compat_ioctl(struct file *file, unsigned int cmd,
184 return __epfs_ioctl(file, cmd, arg);
187 static long epfs_unlocked_ioctl(struct file *file, unsigned int cmd,
190 return __epfs_ioctl(file, cmd, arg);
193 static ssize_t epfs_read(struct file *file, char __user *buf, size_t count,
196 struct inode *inode = file_inode(file);
198 struct file *origin_file;
217 epfs_err("origin file not exist!");
221 // Reduce count when it will read over file size.