Lines Matching full:file
9 #include <linux/file.h>
26 * struct ntsync_obj, and each primitive is backed by a file.
29 * backed by a file.
31 * Both rely on struct file for reference counting. Individual
40 struct file *file; member
53 struct file *file; member
100 static int ntsync_obj_release(struct inode *inode, struct file *file) in ntsync_obj_release() argument
102 struct ntsync_obj *obj = file->private_data; in ntsync_obj_release()
104 fput(obj->dev->file); in ntsync_obj_release()
110 static long ntsync_obj_ioctl(struct file *file, unsigned int cmd, in ntsync_obj_ioctl() argument
113 struct ntsync_obj *obj = file->private_data; in ntsync_obj_ioctl()
141 get_file(dev->file); in ntsync_alloc_obj()
149 struct file *file; in ntsync_obj_get_fd() local
155 file = anon_inode_getfile("ntsync", &ntsync_obj_fops, obj, O_RDWR); in ntsync_obj_get_fd()
156 if (IS_ERR(file)) { in ntsync_obj_get_fd()
158 return PTR_ERR(file); in ntsync_obj_get_fd()
160 obj->file = file; in ntsync_obj_get_fd()
161 fd_install(fd, file); in ntsync_obj_get_fd()
193 static int ntsync_char_open(struct inode *inode, struct file *file) in ntsync_char_open() argument
201 file->private_data = dev; in ntsync_char_open()
202 dev->file = file; in ntsync_char_open()
203 return nonseekable_open(inode, file); in ntsync_char_open()
206 static int ntsync_char_release(struct inode *inode, struct file *file) in ntsync_char_release() argument
208 struct ntsync_device *dev = file->private_data; in ntsync_char_release()
215 static long ntsync_char_ioctl(struct file *file, unsigned int cmd, in ntsync_char_ioctl() argument
218 struct ntsync_device *dev = file->private_data; in ntsync_char_ioctl()