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()
197 configfs_write_file(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in configfs_write_file() argument
199 struct configfs_buffer * buffer = file->private_data; in configfs_write_file()
205 len = flush_write_buffer(file->f_path.dentry, buffer, len); in configfs_write_file()
212 static int check_perm(struct inode * inode, struct file * file) in check_perm() argument
214 struct config_item *item = configfs_get_config_item(file->f_path.dentry->d_parent); in check_perm()
215 struct configfs_attribute * attr = to_attr(file->f_path.dentry); in check_perm()
238 if (file->f_mode & FMODE_WRITE) { in check_perm()
248 if (file->f_mode & FMODE_READ) { in check_perm()
264 file->private_data = buffer; in check_perm()
280 static int configfs_open_file(struct inode * inode, struct file * filp) in configfs_open_file()
285 static int configfs_release(struct inode * inode, struct file * filp) in configfs_release()