#include <linux/module.h>
#include "notifier-error-inject.h"
static int debugfs_errno_set(void *data, u64 val)
{ … }
static int debugfs_errno_get(void *data, u64 *val)
{ … }
DEFINE_SIMPLE_ATTRIBUTE_SIGNED(…);
static struct dentry *debugfs_create_errno(const char *name, umode_t mode,
struct dentry *parent, int *value)
{ … }
static int notifier_err_inject_callback(struct notifier_block *nb,
unsigned long val, void *p)
{ … }
struct dentry *notifier_err_inject_dir;
EXPORT_SYMBOL_GPL(…);
struct dentry *notifier_err_inject_init(const char *name, struct dentry *parent,
struct notifier_err_inject *err_inject, int priority)
{ … }
EXPORT_SYMBOL_GPL(…);
static int __init err_inject_init(void)
{ … }
static void __exit err_inject_exit(void)
{ … }
module_init(…) …;
module_exit(err_inject_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;