#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/usb.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include "usb_mon.h"
#define STAT_BUF_SIZE …
struct snap { … };
static int mon_stat_open(struct inode *inode, struct file *file)
{ … }
static ssize_t mon_stat_read(struct file *file, char __user *buf,
size_t nbytes, loff_t *ppos)
{ … }
static int mon_stat_release(struct inode *inode, struct file *file)
{ … }
const struct file_operations mon_fops_stat = …;