#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/stat.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <asm/setup.h>
struct dentry *arch_debugfs_dir;
EXPORT_SYMBOL(…);
#ifdef CONFIG_DEBUG_BOOT_PARAMS
struct setup_data_node { … };
static ssize_t setup_data_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_setup_data = …;
static void __init
create_setup_data_node(struct dentry *parent, int no,
struct setup_data_node *node)
{ … }
static int __init create_setup_data_nodes(struct dentry *parent)
{ … }
static struct debugfs_blob_wrapper boot_params_blob = …;
static int __init boot_params_kdebugfs_init(void)
{ … }
#endif
static int __init arch_kdebugfs_init(void)
{ … }
arch_initcall(arch_kdebugfs_init);