#include <linux/capability.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/proc_fs.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/init.h>
#define LINE_SIZE …
#include <asm/mtrr.h>
#include "mtrr.h"
#define FILE_FCOUNT(f) …
static const char *const mtrr_strings[MTRR_NUM_TYPES] = …;
const char *mtrr_attrib_to_str(int x)
{ … }
#ifdef CONFIG_PROC_FS
static int
mtrr_file_add(unsigned long base, unsigned long size,
unsigned int type, bool increment, struct file *file, int page)
{ … }
static int
mtrr_file_del(unsigned long base, unsigned long size,
struct file *file, int page)
{ … }
static ssize_t
mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos)
{ … }
static long
mtrr_ioctl(struct file *file, unsigned int cmd, unsigned long __arg)
{ … }
static int mtrr_close(struct inode *ino, struct file *file)
{ … }
static int mtrr_seq_show(struct seq_file *seq, void *offset)
{ … }
static int mtrr_open(struct inode *inode, struct file *file)
{ … }
static const struct proc_ops mtrr_proc_ops = …;
static int __init mtrr_if_init(void)
{ … }
arch_initcall(mtrr_if_init);
#endif