Lines Matching refs:file
9 #include <linux/file.h>
527 static ssize_t device_write(struct file *file, const char __user *buf,
530 struct dlm_user_proc *proc = file->private_data;
653 hanging off the open file that's used to keep track of locks owned by the
656 static int device_open(struct inode *inode, struct file *file)
678 file->private_data = proc;
683 static int device_close(struct inode *inode, struct file *file)
685 struct dlm_user_proc *proc = file->private_data;
701 file->private_data = NULL;
802 static ssize_t device_read(struct file *file, char __user *buf, size_t count,
805 struct dlm_user_proc *proc = file->private_data;
837 if (file->f_flags & O_NONBLOCK) {
922 static __poll_t device_poll(struct file *file, poll_table *wait)
924 struct dlm_user_proc *proc = file->private_data;
926 poll_wait(file, &proc->wait, wait);
957 static int ctl_device_open(struct inode *inode, struct file *file)
959 file->private_data = NULL;
963 static int ctl_device_close(struct inode *inode, struct file *file)
968 static int monitor_device_open(struct inode *inode, struct file *file)
975 static int monitor_device_close(struct inode *inode, struct file *file)