Lines Matching full:file
20 * administrator can control access using file system permissions.
126 vcs_poll_data_get(struct file *file)
128 struct vcs_poll_data *poll = file->private_data, *kill = NULL;
136 poll->cons_num = console(file_inode(file));
155 * If we have two threads using the same file descriptor, they could
161 spin_lock(&file->f_lock);
162 if (!file->private_data) {
163 file->private_data = poll;
167 poll = file->private_data;
169 spin_unlock(&file->f_lock);
228 static loff_t vcs_lseek(struct file *file, loff_t offset, int orig)
230 struct inode *inode = file_inode(file);
245 return fixed_size_llseek(file, offset, orig, size);
365 vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)
367 struct inode *inode = file_inode(file);
397 poll = file->private_data;
590 vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
592 struct inode *inode = file_inode(file);
712 vcs_poll(struct file *file, poll_table *wait)
714 struct vcs_poll_data *poll = vcs_poll_data_get(file);
718 poll_wait(file, &poll->waitq, wait);
735 vcs_fasync(int fd, struct file *file, int on)
737 struct vcs_poll_data *poll = file->private_data;
743 poll = vcs_poll_data_get(file);
748 return fasync_helper(fd, file, on, &poll->fasync);
752 vcs_open(struct inode *inode, struct file *filp)
770 static int vcs_release(struct inode *inode, struct file *file)
772 struct vcs_poll_data *poll = file->private_data;