Lines Matching refs:file
107 configfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) in configfs_read_file() argument
109 struct configfs_buffer * buffer = file->private_data; in configfs_read_file()
114 if ((retval = fill_read_buffer(file->f_path.dentry,buffer))) in configfs_read_file()
198 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument
200 struct configfs_buffer * buffer = file->private_data; in configfs_write_file()
206 len = flush_write_buffer(file->f_path.dentry, buffer, len); in configfs_write_file()
213 static int check_perm(struct inode * inode, struct file * file) in check_perm() argument
215 struct config_item *item = configfs_get_config_item(file->f_path.dentry->d_parent); in check_perm()
216 struct configfs_attribute * attr = to_attr(file->f_path.dentry); in check_perm()
239 if (file->f_mode & FMODE_WRITE) { in check_perm()
250 if (file->f_mode & FMODE_READ) { in check_perm()
266 file->private_data = buffer; in check_perm()
282 static int configfs_open_file(struct inode * inode, struct file * filp) in configfs_open_file()
287 static int configfs_release(struct inode * inode, struct file * filp) in configfs_release()