Lines Matching full:file

8 #include <linux/file.h>
26 struct file *file = NULL;
51 file = anon_inode_getfile(name, fops, thr, fd_flags);
52 ret = PTR_ERR_OR_ZERO(file);
58 fd_install(fd, file);
114 static ssize_t thread_with_stdio_read(struct file *file, char __user *ubuf,
118 container_of(file->private_data, struct thread_with_stdio, thr);
123 if (!(file->f_flags & O_NONBLOCK)) {
154 static int thread_with_stdio_release(struct inode *inode, struct file *file)
157 container_of(file->private_data, struct thread_with_stdio, thr);
167 static ssize_t thread_with_stdio_write(struct file *file, const char __user *ubuf,
171 container_of(file->private_data, struct thread_with_stdio, thr);
209 if ((file->f_flags & O_NONBLOCK)) {
224 static __poll_t thread_with_stdio_poll(struct file *file, struct poll_table_struct *wait)
227 container_of(file->private_data, struct thread_with_stdio, thr);
229 poll_wait(file, &thr->stdio.output.wait, wait);
230 poll_wait(file, &thr->stdio.input.wait, wait);
243 static __poll_t thread_with_stdout_poll(struct file *file, struct poll_table_struct *wait)
246 container_of(file->private_data, struct thread_with_stdio, thr);
248 poll_wait(file, &thr->stdio.output.wait, wait);
259 static int thread_with_stdio_flush(struct file *file, fl_owner_t id)
262 container_of(file->private_data, struct thread_with_stdio, thr);
267 static long thread_with_stdio_ioctl(struct file *file, unsigned int cmd, unsigned long p)
270 container_of(file->private_data, struct thread_with_stdio, thr);
341 * we're waiting on user input (or for the file descriptor to be