Lines Matching defs:file
9 #include <linux/file.h>
501 static ssize_t device_write(struct file *file, const char __user *buf,
504 struct dlm_user_proc *proc = file->private_data;
627 hanging off the open file that's used to keep track of locks owned by the
630 static int device_open(struct inode *inode, struct file *file)
652 file->private_data = proc;
657 static int device_close(struct inode *inode, struct file *file)
659 struct dlm_user_proc *proc = file->private_data;
675 file->private_data = NULL;
776 static ssize_t device_read(struct file *file, char __user *buf, size_t count,
779 struct dlm_user_proc *proc = file->private_data;
811 if (file->f_flags & O_NONBLOCK) {
888 static __poll_t device_poll(struct file *file, poll_table *wait)
890 struct dlm_user_proc *proc = file->private_data;
892 poll_wait(file, &proc->wait, wait);
923 static int ctl_device_open(struct inode *inode, struct file *file)
925 file->private_data = NULL;
929 static int ctl_device_close(struct inode *inode, struct file *file)
934 static int monitor_device_open(struct inode *inode, struct file *file)
941 static int monitor_device_close(struct inode *inode, struct file *file)