#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include "uvcvideo.h"
#define UVC_DEBUGFS_BUF_SIZE …
struct uvc_debugfs_buffer { … };
static int uvc_debugfs_stats_open(struct inode *inode, struct file *file)
{ … }
static ssize_t uvc_debugfs_stats_read(struct file *file, char __user *user_buf,
size_t nbytes, loff_t *ppos)
{ … }
static int uvc_debugfs_stats_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations uvc_debugfs_stats_fops = …;
static struct dentry *uvc_debugfs_root_dir;
void uvc_debugfs_init_stream(struct uvc_streaming *stream)
{ … }
void uvc_debugfs_cleanup_stream(struct uvc_streaming *stream)
{ … }
void uvc_debugfs_init(void)
{ … }
void uvc_debugfs_cleanup(void)
{ … }