#include <linux/iversion.h>
#include "affs.h"
struct affs_dir_data { … };
static int affs_readdir(struct file *, struct dir_context *);
static loff_t affs_dir_llseek(struct file *file, loff_t offset, int whence)
{ … }
static int affs_dir_open(struct inode *inode, struct file *file)
{ … }
static int affs_dir_release(struct inode *inode, struct file *file)
{ … }
const struct file_operations affs_dir_operations = …;
const struct inode_operations affs_dir_inode_operations = …;
static int
affs_readdir(struct file *file, struct dir_context *ctx)
{ … }