Lines Matching refs:file
433 * attribute file
1587 static int configfs_dir_open(struct inode *inode, struct file *file)
1589 struct dentry * dentry = file->f_path.dentry;
1600 file->private_data = configfs_new_dirent(parent_sd, NULL, 0, NULL);
1601 if (IS_ERR(file->private_data))
1602 err = PTR_ERR(file->private_data);
1611 static int configfs_dir_close(struct inode *inode, struct file *file)
1613 struct dentry * dentry = file->f_path.dentry;
1614 struct configfs_dirent * cursor = file->private_data;
1633 static int configfs_readdir(struct file *file, struct dir_context *ctx)
1635 struct dentry *dentry = file->f_path.dentry;
1638 struct configfs_dirent *cursor = file->private_data;
1642 if (!dir_emit_dots(file, ctx))
1665 * someone has an attribute file open,
1694 static loff_t configfs_dir_lseek(struct file *file, loff_t offset, int whence)
1696 struct dentry * dentry = file->f_path.dentry;
1700 offset += file->f_pos;
1709 if (offset != file->f_pos) {
1710 file->f_pos = offset;
1711 if (file->f_pos >= 2) {
1713 struct configfs_dirent *cursor = file->private_data;
1715 loff_t n = file->f_pos - 2;