#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/mdev.h>
#include "mdev_private.h"
#define DRIVER_VERSION …
#define DRIVER_AUTHOR …
#define DRIVER_DESC …
static struct class_compat *mdev_bus_compat_class;
static LIST_HEAD(mdev_list);
static DEFINE_MUTEX(mdev_list_lock);
static void mdev_device_remove_common(struct mdev_device *mdev)
{ … }
static int mdev_device_remove_cb(struct device *dev, void *data)
{ … }
int mdev_register_parent(struct mdev_parent *parent, struct device *dev,
struct mdev_driver *mdev_driver, struct mdev_type **types,
unsigned int nr_types)
{ … }
EXPORT_SYMBOL(…);
void mdev_unregister_parent(struct mdev_parent *parent)
{ … }
EXPORT_SYMBOL(…);
static void mdev_device_release(struct device *dev)
{ … }
int mdev_device_create(struct mdev_type *type, const guid_t *uuid)
{ … }
int mdev_device_remove(struct mdev_device *mdev)
{ … }
static int __init mdev_init(void)
{ … }
static void __exit mdev_exit(void)
{ … }
subsys_initcall(…) …
module_exit(…)
MODULE_VERSION(…);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…);
MODULE_DESCRIPTION(…);