Lines Matching defs:file
9 #include <linux/file.h>
516 static ssize_t device_write(struct file *file, const char __user *buf,
519 struct dlm_user_proc *proc = file->private_data;
642 hanging off the open file that's used to keep track of locks owned by the
645 static int device_open(struct inode *inode, struct file *file)
667 file->private_data = proc;
672 static int device_close(struct inode *inode, struct file *file)
674 struct dlm_user_proc *proc = file->private_data;
690 file->private_data = NULL;
791 static ssize_t device_read(struct file *file, char __user *buf, size_t count,
794 struct dlm_user_proc *proc = file->private_data;
822 if (file->f_flags & O_NONBLOCK) {
871 static __poll_t device_poll(struct file *file, poll_table *wait)
873 struct dlm_user_proc *proc = file->private_data;
875 poll_wait(file, &proc->wait, wait);
906 static int ctl_device_open(struct inode *inode, struct file *file)
908 file->private_data = NULL;
912 static int ctl_device_close(struct inode *inode, struct file *file)
917 static int monitor_device_open(struct inode *inode, struct file *file)
924 static int monitor_device_close(struct inode *inode, struct file *file)