Lines Matching full:file
10 #include <linux/file.h>
31 sync_file->file = anon_inode_getfile("sync_file", &sync_file_fops,
33 if (IS_ERR(sync_file->file))
57 * sync_file_create() - creates a sync file
62 * sync_file can be released with fput(sync_file->file). Returns the
81 struct file *file = fget(fd);
83 if (!file)
86 if (file->f_op != &sync_file_fops)
89 return file->private_data;
92 fput(file);
113 fput(sync_file->file);
177 fput(sync_file->file);
185 static int sync_file_release(struct inode *inode, struct file *file)
187 struct sync_file *sync_file = file->private_data;
197 static __poll_t sync_file_poll(struct file *file, poll_table *wait)
199 struct sync_file *sync_file = file->private_data;
201 poll_wait(file, &sync_file->wq, wait);
253 fd_install(fd, fence3->file);
254 fput(fence2->file);
258 fput(fence3->file);
261 fput(fence2->file);
382 static long sync_file_ioctl(struct file *file, unsigned int cmd,
385 struct sync_file *sync_file = file->private_data;